coverity#704604 Explicit null dereferenced

Change-Id: I400105321f7bed54d56bd7af4dfd14656293b5b9
coverity#982430 Division or modulo by zero

Change-Id: I9764d4e122c4dbab2349499f30c17842e432dadc
coverity#1130391 Missing break in switch

Change-Id: If6202788224b59de7bb6db7a17ab2061c1f6f771
coverity#1130409 Missing break in switch

Change-Id: Iad5076e7717703c7eaea90eeb9ca082aa33cccac
coverity#708406 Uninitialized pointer field

Change-Id: I446c1eb18d45ca9d70690a763bffe1cc144369b4