Betterverse/Towns — Issue #22: NullPointer
Author: Asphodan
Created: 2012-02-23 10:53:41+00:00
State: open
Labels: High Priority

04:54:20 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'town' in plugin Towns v25
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:509)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:784)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:744)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:732)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:176)
at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:552)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
Caused by: java.lang.NullPointerException
at net.betterverse.towns.TownsFormatter.getStatus(TownsFormatter.java:119)
at net.betterverse.towns.object.TownsUniverse.getStatus(TownsUniverse.java:912)
at net.betterverse.towns.command.TownCommand.parseTownCommand(TownCommand.java:184)
at net.betterverse.towns.command.TownCommand.onCommand(TownCommand.java:88)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
... 14 more

Using "/town , which I thought would get me the town info (# Residents, Chunks claimed, et cetera) ... Gave me that instead.