From 2a7f951f4f14cc8b4790a7f60ee322d144063c8e Mon Sep 17 00:00:00 2001 From: Luck Date: Tue, 4 Oct 2016 16:10:06 +0100 Subject: [PATCH] Fix NPE / crash on player quit --- bukkit/src/main/java/me/lucko/luckperms/inject/Injector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/me/lucko/luckperms/inject/Injector.java b/bukkit/src/main/java/me/lucko/luckperms/inject/Injector.java index d47fc388..fbfae7df 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/inject/Injector.java +++ b/bukkit/src/main/java/me/lucko/luckperms/inject/Injector.java @@ -62,7 +62,7 @@ public class Injector { try { Permissible permissible = getPermissible(sender); if (permissible instanceof LPPermissible) { - getPermField(sender).set(sender, null); + getPermField(sender).set(sender, new PermissibleBase(sender)); } return true; } catch (Exception e) {