coverity: CID 1063304 Dereference after null check