Check null pointer.