Null dereference check.