fix possible nullpointer dereferenciation; tnx to the clang static analyzer