MinecraftForge / FML

(Archive Only: Merged into Forge proper) The Forge Mod Loader - an opensource replacement mod loader for minecraft
Other
434 stars 201 forks source link

Null check in EventBus when unregistering event handlers #671

Closed olee closed 9 years ago

olee commented 9 years ago

There is currently no way to check if an event handler has been registered or not. But when trying to unregister a not-registered event handler, Minecraft crashes with a NullPointerException. This is a simple fix to prevent such crashes.

(Same patch applies for 1.8 and newer)

liach commented 9 years ago

(Archive Only: Merged into Forge proper) The Forge Mod Loader - an opensource replacement mod loader for minecraft

olee commented 9 years ago

Oh sorry, missed that one. https://github.com/MinecraftForge/MinecraftForge/pull/2103