coverity#1158351 Uncaught exception

Change-Id: I8549a8fe7cbb262712c5a4996802a8c724ea3645
coverity#1158350 Uncaught exception

Change-Id: Ia2775cc9b93eb6805ec01a30391bcc22b175a7d3
coverity#1158349 Uncaught exception

Change-Id: I9c6ff59dbb3a286a37dcef8e47f38226f6765621
coverity#1158348 Uncaught exception

Change-Id: I89dea1733a1c914a913fe31bb66b6e30c1e55dc9
coverity#1158347 Uncaught exception

Change-Id: Iacaf59724b71d810270545d1e9dd04d59125cc92
coverity#1158346 Uncaught exception

Change-Id: Ifd85f727dc741b2d59bfc9eebabbff24e0e69e1d
coverity#1158257 Unintended sign extension

Change-Id: I20b32255336c3efeef796df78b7af7a12dd60833
coverity#1158251 Dereference before null check

Change-Id: I724632f66d7ec64e165b039e8b9d8c43a9f5aaa7
coverity#1158136 Unchecked dynamic_cast

Change-Id: I8d4e7c497430faacd0d8f1138b9af8b2f11127a0
coverity#440744 Dereference after null check

Change-Id: Id9ab2ffde8eb82e49164350d1703e4d93f96663e
coverity#440860 Logically dead code

Change-Id: I8e57f3ecf4e4d4052c267b6e0c435253cf5b84ec
coverity#440936 Logically dead code

Change-Id: I04299880a9e5ccc5d92aa194a9cd100a46906b79
coverity#440993 Logically dead code

Change-Id: I03685c9a1db89ce4365945d88ce4251ccdf32246
coverity#440994 Logically dead code

Change-Id: Ib01d71c43ab3761973a95e2faf9113ec46424e97
coverity#440995 Logically dead code

Change-Id: I8494cef9c63895c0d7b0a2377961da2df8f34606
coverity#440996 Logically dead code

Change-Id: I4ef10ab73aa506394f49e5501a4f6c35543cc573
coverity#440997 Logically dead code

Change-Id: Id8340d1c5c07026da7f737924d5caf3e6254c340
coverity#440998 Logically dead code

Change-Id: Ie7647ef6fb605f14febfb83804b23d8fd62bc717
coverity#441000 Logically dead code

Change-Id: I4fa2639b62ee08dc2367cfc975bf673cbed65fb6
coverity#704343 Dead default in switch

only >= 0 and <= 4 are possible here, make 0 the default to keep
coverity and compilers both happy

Change-Id: I2e1e6a4ea3a1fd30f230e59ecdcb6b55e9028c08