MobHunting

MobHunting

114k Downloads

NPE on disable (shutdown)

SlimeDog opened this issue ยท 3 comments

commented

Spigot 1.11.2, MH 4.4.8

[12:27:23][Server thread/INFO]: [MobHunting] Disabling MobHunting v4.4.8
[12:27:23] [Server thread/ERROR]: Error occurred while disabling MobHunting v4.4.8 (Is it up to date?)
java.lang.NullPointerException
at one.lindegaard.MobHunting.MobHunting.onDisable(MobHunting.java:304) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:273) ~[spigot-1.11.2.jar-2017-02-15-1243:git-Spigot-65a0347-1a71021]
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:361) [spigot-1.11.2.jar-2017-02-15-1243:git-Spigot-65a0347-1a71021]
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:424) [spigot-1.11.2.jar-2017-02-15-1243:git-Spigot-65a0347-1a71021]
at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:417) [spigot-1.11.2.jar-2017-02-15-1243:git-Spigot-65a0347-1a71021]
at org.bukkit.craftbukkit.v1_11_R1.CraftServer.disablePlugins(CraftServer.java:345) [spigot-1.11.2.jar-2017-02-15-1243:git-Spigot-65a0347-1a71021]
at net.minecraft.server.v1_11_R1.MinecraftServer.stop(MinecraftServer.java:464) [spigot-1.11.2.jar-2017-02-15-1243:git-Spigot-65a0347-1a71021]
at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:612) [spigot-1.11.2.jar-2017-02-15-1243:git-Spigot-65a0347-1a71021]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]

That is the complete error message. Next log line refers to a different plugin. There are no later references to MobHunting.

commented

I have found the bug, it only happens when the fishing reward is disabled. This will be fixed in next release.

commented

Thanks. Confirm that fishing rewards are disabled on my server. :)

commented

Fixed in v4.4.9