CraftBook 3

CraftBook 3

139k Downloads

Craftbook throws NPE with /area save on craftbukkit 1.4.5R1.0

LadyCailinBot opened this issue ยท 2 comments

commented

CRAFTBOOK-2334 - Reported by Cormac.Dubh

when I try to /area save dt_mgate_c on cb 1.4.5R1.0 craftbook 3.4.1throws an error:

com.sk89q.minecraft.util.commands.WrappedCommandException: java.lang.NullPointerException
at com.sk89q.minecraft.util.commands.CommandsManager.invokeMethod(CommandsManager.java:532)
at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:509)
at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:464)
at com.sk89q.minecraft.util.commands.CommandsManager.execute(CommandsManager.java:409)
at com.sk89q.craftbook.bukkit.BaseBukkitPlugin.onCommand(BaseBukkitPlugin.java:317)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186)
at org.bukkit.craftbukkit.v1_4_5.CraftServer.dispatchCommand(CraftServer.java:504)
at net.minecraft.server.v1_4_5.NetServerHandler.handleCommand(NetServerHandler.java:988)
at net.minecraft.server.v1_4_5.NetServerHandler.chat(NetServerHandler.java:906)
at net.minecraft.server.v1_4_5.NetServerHandler.a(NetServerHandler.java:861)
at net.minecraft.server.v1_4_5.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.v1_4_5.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_5.NetServerHandler.d(NetServerHandler.java:113)
at net.minecraft.server.v1_4_5.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_5.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_4_5.MinecraftServer.r(MinecraftServer.java:597)
at net.minecraft.server.v1_4_5.DedicatedServer.r(DedicatedServer.java:222)
at net.minecraft.server.v1_4_5.MinecraftServer.q(MinecraftServer.java:493)
at net.minecraft.server.v1_4_5.MinecraftServer.run(MinecraftServer.java:426)
at net.minecraft.server.v1_4_5.ThreadServerApplication.run(SourceFile:856)
Caused by: java.lang.NullPointerException
at com.sk89q.craftbook.bukkit.commands.AreaCommands.saveArea(AreaCommands.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:474)
at com.sk89q.minecraft.util.commands.CommandsManager.invokeMethod(CommandsManager.java:522)
... 20 more

commented

Comment by Cormac.Dubh

This happens, when we-cui shows a selection but in fact there is none.
It would be more elegant to say "nothing selected" or similar.

commented

Comment by me4502

Ah.. Okay, I'll make it say nothing selected