[#2212] CID43791:

make sure we don't dereference null pointers