From 98734153030c96b16a4b91fb5547b55cd47c2cfd Mon Sep 17 00:00:00 2001 From: Luck Date: Thu, 25 Aug 2016 18:07:50 +0100 Subject: [PATCH] Fix NPE --- bukkit/src/main/java/me/lucko/luckperms/users/BukkitUser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/me/lucko/luckperms/users/BukkitUser.java b/bukkit/src/main/java/me/lucko/luckperms/users/BukkitUser.java index 70424741..5f1edd88 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/users/BukkitUser.java +++ b/bukkit/src/main/java/me/lucko/luckperms/users/BukkitUser.java @@ -68,7 +68,7 @@ public class BukkitUser extends User { @Override public void refreshPermissions() { if (attachment == null) { - getPlugin().getLog().severe("User " + getName() + " does not have a permissions attachment defined."); + return; } // Calculate the permissions that should be applied. This is done async, who cares about how long it takes or how often it's done.