Some nullpointer exception bug