From 31c1bd52bced0111f0980405087f8b40303880bf Mon Sep 17 00:00:00 2001 From: nossr50 Date: Sun, 14 Apr 2019 05:39:23 -0700 Subject: [PATCH] 2.1.44 --- pom.xml | 2 +- src/main/java/com/gmail/nossr50/util/player/UserManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 33640d6d2..1ac897472 100755 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 com.gmail.nossr50.mcMMO mcMMO - 2.1.44-SNAPSHOT + 2.1.44 mcMMO https://github.com/mcMMO-Dev/mcMMO diff --git a/src/main/java/com/gmail/nossr50/util/player/UserManager.java b/src/main/java/com/gmail/nossr50/util/player/UserManager.java index 2e220790e..cbf897794 100644 --- a/src/main/java/com/gmail/nossr50/util/player/UserManager.java +++ b/src/main/java/com/gmail/nossr50/util/player/UserManager.java @@ -103,7 +103,7 @@ public final class UserManager { */ public static McMMOPlayer getPlayer(Player player) { //Avoid Array Index out of bounds - if(player.hasMetadata(mcMMO.playerDataKey)) + if(player != null && player.hasMetadata(mcMMO.playerDataKey)) return (McMMOPlayer) player.getMetadata(mcMMO.playerDataKey).get(0).value(); else return null;