diff --git a/src/main/java/org/mangorage/eventbus/EventBus.java b/src/main/java/org/mangorage/eventbus/EventBus.java index 2ebdbba..c61d2cf 100644 --- a/src/main/java/org/mangorage/eventbus/EventBus.java +++ b/src/main/java/org/mangorage/eventbus/EventBus.java @@ -150,7 +150,7 @@ public void post(E event) { genericType = genericEvent.getGenericType(); ListenerList list = (ListenerList) getListenerList(event.getClass(), genericType); - list.post(event); + if (list != null) list.post(event); } /**