CheckClass: Fixed nullpointer check and then dereference warning.