handling null event type