Reloading plugin (via a plugin manager) with player online causes NullPointerException
Spice-King opened this issue ยท 1 comments
Just need a Null check before moving on.
2012-04-03 10:19:53 [INFO] [SpoutWallet] Disabling SpoutWallet v1.4.4.1
2012-04-03 10:19:53 [INFO] SpoutWallet v1.4.4.1 is now disabled!
2012-04-03 10:19:53 [INFO] [SpoutWallet] Enabling SpoutWallet v1.4.4.1
2012-04-03 10:19:53 [INFO] [SpoutWallet] Hooked Vault!
2012-04-03 10:19:53 [INFO] [SpoutWallet] is now enabled!
2012-04-03 10:19:53 [INFO] [PlugMan] SpoutWallet Reloaded!
2012-04-03 10:19:56 [WARNING] Task of 'SpoutWallet' generated an exception
java.lang.NullPointerException
at me.spiceking.plugins.spoutwallet.SpoutWallet.updateGUI(SpoutWallet.java:230)
at me.spiceking.plugins.spoutwallet.SpoutWallet.onSecond(SpoutWallet.java:201)
at me.spiceking.plugins.spoutwallet.SpoutWallet.access$000(SpoutWallet.java:45)
at me.spiceking.plugins.spoutwallet.SpoutWallet$2.run(SpoutWallet.java:189)
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:520)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)```
Almost forgot to make note that commit 8f6362f fixes this.