Added another null pointer check.