coverity#1251173 Dereference before null check

Change-Id: I5fb5ef73a40162dea1356dde03ceaa75a65f842a
coverity#1187864 Uninitialized scalar field

Change-Id: I80df95f70de515a0247827a89297cdfdf0399989
coverity#708662 Uninitialized scalar field

Change-Id: I6b694659077abce4ca7c67cf0298c9b882a2b964
coverity#982483 Dereference after null check

Change-Id: I6098e597cb00fccff4cf4611a8ac82badf1bdf02
coverity#1242630 reorganize to help coverity out

Change-Id: I18124cd8d7aadbab22114fa9d38607b43862f9ea