Remove bugcheck code

Removed some code that checked for a null pointer