SacredCoding/SimpleClans — Issue #135: NPE on /accept command
Author: TnTBass
Created: 2012-02-26 22:05:29+00:00
State: open

Oddly, not sure what is going on here. I'll try to explain.

I just installed Simple Clans (Thank you for the great plugin, btw), and a couple of clans have popped up. The one clan sent the staff clan an alliance last night - which I accepted. All seemed fine. I'd leave the server and it would tell me:

2012-02-26 14:29:04 [INFO] TnTBass lost connection: disconnect.quitting
2012-02-26 14:29:04 [INFO] ?b[Leader Announce?b] ?f?e?cTnTBass has signed off. CREATE_ALLY request cancelled.

I put it out of my mind. I also saw NPE's on mChat (http://dev.bukkit.org/server-mods/mchat/tickets/187-npe-during-use/) and I think they might be (loosely) related.

I logged into the server and tried /accept. I got this (and it told me the alliance request was accepted):

2012-02-26 16:57:24 [SEVERE] Could not pass event org.bukkit.event.player.PlayerCommandPreprocessEvent to SimpleClans
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1026)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:777)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:744)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:732)
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 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.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
... 12 more
Caused by: java.lang.NullPointerException
at net.sacredlabyrinth.phaed.simpleclans.Clan.clanAnnounce(Clan.java:1169)
at net.sacredlabyrinth.phaed.simpleclans.Clan.addBb(Clan.java:1235)
at net.sacredlabyrinth.phaed.simpleclans.managers.RequestManager.processResults(RequestManager.java:342)
at net.sacredlabyrinth.phaed.simpleclans.managers.RequestManager.accept(RequestManager.java:202)
at net.sacredlabyrinth.phaed.simpleclans.managers.CommandManager.processAccept(CommandManager.java:318)
at net.sacredlabyrinth.phaed.simpleclans.listeners.SCPlayerListener.onPlayerCommandPreprocess(SCPlayerListener.java:144)
... 16 more

Do you need more info?