Vault

Vault

7M Downloads

NPE on fetching default group from PermissionsBukkit

krinsdeath opened this issue ยท 4 comments

commented

Happens as soon as you punch a sign and you're in the default group (not yet written to config); running /perm player setgroup [username] default, the NPE disappears.

Caused by: java.lang.NullPointerException
    at net.milkbowl.vault.permission.plugins.Permission_PermissionsBukkit.getPlayerGroups(Permission_PermissionsBukkit.java:200)
    at net.milkbowl.vault.permission.Permission.getPlayerGroups(Permission.java:522)
    at org.wargamer2010.signshop.player.SignShopPlayer.getPlayerPricemod(SignShopPlayer.java:147)
    at org.wargamer2010.signshop.listeners.SignShopPlayerListener.onPlayerInteract(SignShopPlayerListener.java:923)
    at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    ... 12 more

Sorry:

Vault 1.2.13 b148
PermissionsBukkit 1.6
SignShop 1.7.4

commented

I haven't seen the error again, I assume it is fixed now.

commented

@krinsdeath - cool, thanks for responding!

commented

d95d5f2

is that the one you were talking about?

commented

@krinsdeath - let me know if this is still bugged. fairly certain it was fixed in the patch though.