Fix.

Null pointer check