A couple null ptr checks.