Prevent a strange null pointer exception