coverity#735797 Explicit null dereferenced

Change-Id: I67345e7eaae16baf677e9aad721d39b4ea0c43d1
coverity#705325 Missing break in switch

Change-Id: I575292a649ebdf8e16613f07d0c98a68c603a087
coverity#1078651 Missing break in switch

Change-Id: I51101889b13b8160a0fbc2b840ff060bd9b90b49
coverity#704897 Unchecked dynamic_cast

Change-Id: Ib4a794710b6b48bdfbeb326e1aaa28443e42e770