Gringotts

Gringotts

53.6k Downloads

Removing a world that has vaults on it will cause a NPE on DerbyDAO.getChests()

squidicuzz opened this issue ยท 2 comments

commented

SEE: squidicuzz@8bf7f8c


ORIGIN:

2013-06-11 22:09:49 [INFO] zanepadfield01 issued server command: /money
2013-06-11 22:09:49 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'money' in plugin Gringotts v2.0-beta4
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189)
at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServer.java:547)
at net.minecraft.server.v1_5_R3.PlayerConnection.handleCommand(PlayerConnection.java:979)
at net.minecraft.server.v1_5_R3.PlayerConnection.chat(PlayerConnection.java:895)
at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:840)
at net.minecraft.server.v1_5_R3.Packet3Chat.handle(Packet3Chat.java:44)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:186)
at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109)
at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35)
at org.spigotmc.MultiplexingServerConnection.b(MultiplexingServerConnection.java:72)
at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:583)
at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472)
at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404)
at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.NullPointerException
at org.bukkit.Location.getBlock(Location.java:82)
at org.gestern.gringotts.data.DerbyDAO.getChests(DerbyDAO.java:347)
at org.gestern.gringotts.GringottsAccount.balance(GringottsAccount.java:46)
at org.gestern.gringotts.api.impl.GringottsEco$ValidAccount.balance(GringottsEco.java:221)
at org.gestern.gringotts.Commands.balanceMessage(Commands.java:275)
at org.gestern.gringotts.Commands.access$0(Commands.java:274)
at org.gestern.gringotts.Commands$Money.onCommand(Commands.java:56)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
... 15 more

commented

this should be fixed now with commit 8869249

commented

Will this also happen with EBeanDAO?