quick null pointer fix