Multitallented/HeroStronghold — Issue #2: NPE on attempted Stronghold creation
Author: HSAR
Created: 2011-12-28 01:07:22+00:00
State: open

When a user attempts to create a Stronghold, an NPE is thrown, shown below. This happens whether the user has permissions or not. Strongholds defined in the configuration and not in the configuration were attempted and resulted in identical errors.

2011-12-27 19:53:34 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'herostrong' in plugin HeroStronghold v0.1
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:180)
at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
Caused by: java.lang.NullPointerException
at main.java.multitallented.plugins.herostronghold.HeroStronghold.onCommand(HeroStronghold.java:102)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)