Working on EventManager class

NullPointer exception