Fixed a possible null pointer access.