Quick nullpointer exception fix