diff --git a/src/main/java/net/minecraftforge/fml/common/eventhandler/EventBus.java b/src/main/java/net/minecraftforge/fml/common/eventhandler/EventBus.java index 391810d1e..87d0c9948 100644 --- a/src/main/java/net/minecraftforge/fml/common/eventhandler/EventBus.java +++ b/src/main/java/net/minecraftforge/fml/common/eventhandler/EventBus.java @@ -121,6 +121,8 @@ public class EventBus implements IEventExceptionHandler public void unregister(Object object) { ArrayList list = listeners.remove(object); + if(list == null) + return; for (IEventListener listener : list) { ListenerList.unregisterAll(busID, listener);