codename-B/bPermissions — Issue #27: NPE trying to get Group Prefix
Author: ty2u
Created: 2012-02-26 02:55:54+00:00
State: open

Hello,

You seem to have fixed the bug from earlier with MonsterIRC with the null world thing so thank you!!! But unfortunately now I get this other NPE. In MonsterIRC chat they said maybe bPermissions doesn't handle the prefixes properly so I figured I should make a new issue here for it.

This was with only these plugins installed: bPermissions (latest snapshot with the issue you fixed: 4a22657928bd25301167e842ffa64270bcdec694), Vault 1.2.9, and MonsterIRC 1.5.0 or latest snapshot.

This server is running CraftBukkit version git-Bukkit-1.1-R4-b1938jnks (MC: 1.1) (Implementing API version 1.1-R4)

Thanks =)

Chatting from Minecraft:

[SEVERE] java.lang.NullPointerException
[SEVERE]	at de.bananaco.bpermissions.api.ApiLayer.getGroups(ApiLayer.java:36)
[SEVERE]	at net.milkbowl.vault.permission.plugins.Permission_bPermissions2.getPlayerGroups(Permission_bPermissions2.java:132)
[SEVERE]	at net.milkbowl.vault.permission.plugins.Permission_bPermissions2.getPrimaryGroup(Permission_bPermissions2.java:137)
[SEVERE]	at net.milkbowl.vault.chat.Chat.getPrimaryGroup(Chat.java:698)
[SEVERE]	at org.monstercraft.irc.plugin.util.StringUtils.getGroupPrefix(StringUtils.java:101)
[SEVERE]	at org.monstercraft.irc.plugin.managers.listeners.JavaPluginListener.handleMessage(JavaPluginListener.java:147)
[SEVERE]	at org.monstercraft.irc.plugin.managers.listeners.JavaPluginListener.onPlayerChat(JavaPluginListener.java:71)
[SEVERE]	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[SEVERE]	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[SEVERE]	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[SEVERE]	at java.lang.reflect.Method.invoke(Unknown Source)
[SEVERE]	at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
[SEVERE]	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
[SEVERE]	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
[SEVERE]	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:749)
[SEVERE]	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:732)
[SEVERE]	at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
[SEVERE]	at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
[SEVERE]	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
[SEVERE]	at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
[SEVERE]	at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
[SEVERE]	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
[SEVERE]	at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

Chatting from IRC:

[SEVERE] java.lang.NullPointerException
[SEVERE]	at de.bananaco.bpermissions.api.ApiLayer.getGroups(ApiLayer.java:36)
[SEVERE]	at net.milkbowl.vault.permission.plugins.Permission_bPermissions2.getPlayerGroups(Permission_bPermissions2.java:132)
[SEVERE]	at net.milkbowl.vault.permission.plugins.Permission_bPermissions2.getPrimaryGroup(Permission_bPermissions2.java:137)
[SEVERE]	at net.milkbowl.vault.chat.Chat.getPrimaryGroup(Chat.java:698)
[SEVERE]	at org.monstercraft.irc.plugin.util.StringUtils.getGroupPrefix(StringUtils.java:101)
[SEVERE]	at org.monstercraft.irc.plugin.managers.handlers.IRCHandler.handleMessage(IRCHandler.java:820)
[SEVERE]	at org.monstercraft.irc.plugin.managers.handlers.IRCHandler.access$400(IRCHandler.java:59)
[SEVERE]	at org.monstercraft.irc.plugin.managers.handlers.IRCHandler$1.run(IRCHandler.java:506)
[SEVERE]	at java.lang.Thread.run(Unknown Source)