Vault

Vault

7M Downloads

NPE with bPermissions

Opened this issue ยท 4 comments

commented

Hello there,

I am getting some errors I can't figure out when using CraftBukkit RB4 with MonsterIRC 1.50 and trying to use bPermissions 2.9.0 with Vault 1.2.9 and nothing else on it.

"codename_B update your Vault
codename_B even if monsterirc passes a null world it sohuldn't happen like that".

The error happens when chatting:

From Minecraft:

2012-02-25 10:39:17 [SEVERE] [MonsterIRC - Critical error detected!]
2012-02-25 10:39:17 [SEVERE] java.lang.NullPointerException
2012-02-25 10:39:17 [SEVERE]    at de.bananaco.bpermissions.api.ApiLayer.getValue(ApiLayer.java:66)
2012-02-25 10:39:17 [SEVERE]    at net.milkbowl.vault.chat.plugins.Chat_bPermissions2.getPlayerPrefix(Chat_bPermissions2.java:83)
2012-02-25 10:39:17 [SEVERE]    at org.monstercraft.irc.plugin.util.StringUtils.getPrefix(StringUtils.java:19)
2012-02-25 10:39:17 [SEVERE]    at org.monstercraft.irc.plugin.managers.listeners.MonsterIRCListener.handleMessage(MonsterIRCListener.java:154)
2012-02-25 10:39:17 [SEVERE]    at org.monstercraft.irc.plugin.managers.listeners.MonsterIRCListener.onPlayerChat(MonsterIRCListener.java:77)
2012-02-25 10:39:17 [SEVERE]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-02-25 10:39:17 [SEVERE]    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2012-02-25 10:39:17 [SEVERE]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2012-02-25 10:39:17 [SEVERE]    at java.lang.reflect.Method.invoke(Unknown Source)
2012-02-25 10:39:17 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
2012-02-25 10:39:17 [SEVERE]    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
2012-02-25 10:39:17 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
2012-02-25 10:39:17 [SEVERE]    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:749)
2012-02-25 10:39:17 [SEVERE]    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:732)
2012-02-25 10:39:17 [SEVERE]    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
2012-02-25 10:39:17 [SEVERE]    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
2012-02-25 10:39:17 [SEVERE]    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
2012-02-25 10:39:17 [SEVERE]    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
2012-02-25 10:39:17 [SEVERE]    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
2012-02-25 10:39:17 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
2012-02-25 10:39:17 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

Then from IRC:

2012-02-25 10:40:54 [SEVERE] [MonsterIRC - Critical error detected!]
2012-02-25 10:40:54 [SEVERE] java.lang.NullPointerException
2012-02-25 10:40:54 [SEVERE]    at de.bananaco.bpermissions.api.ApiLayer.getValue(ApiLayer.java:66)
2012-02-25 10:40:54 [SEVERE]    at net.milkbowl.vault.chat.plugins.Chat_bPermissions2.getPlayerPrefix(Chat_bPermissions2.java:83)
2012-02-25 10:40:54 [SEVERE]    at org.monstercraft.irc.plugin.util.StringUtils.getPrefix(StringUtils.java:19)
2012-02-25 10:40:54 [SEVERE]    at org.monstercraft.irc.plugin.managers.handlers.IRCHandler.handleMessage(IRCHandler.java:820)
2012-02-25 10:40:54 [SEVERE]    at org.monstercraft.irc.plugin.managers.handlers.IRCHandler.access$400(IRCHandler.java:59)
2012-02-25 10:40:54 [SEVERE]    at org.monstercraft.irc.plugin.managers.handlers.IRCHandler$1.run(IRCHandler.java:506)
2012-02-25 10:40:54 [SEVERE]    at java.lang.Thread.run(Unknown Source)
commented

probably an issue with bPerms (or one I've already patched) but I'll make certain and get with @codename-B on a fix.

commented

Oh whoops, I'm calling world.getName() on a null world XD

I DO support null world names, but not null worlds, I'll fix this.

commented

Woooo! You are all awesome =) Thank you!

commented

closing since codename saw what was going on :)