Add null pointer check.
Add null pointer check.

rsmmr/hilti,FrozenCaribou/hilti,FrozenCaribou/hilti,rsmmr/hilti,FrozenCaribou/hilti,FrozenCaribou/hilti,rsmmr/hilti,rsmmr/hilti,FrozenCaribou/hilti,rsmmr/hilti