From 0f2d0aee5f492950aa0372cecdbed3812fd13ae3 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Thu, 12 Sep 2013 21:21:00 -0400 Subject: [PATCH] Fix NPE on /addxp --- .../gmail/nossr50/commands/experience/ExperienceCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java b/src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java index a35f87536..13956c458 100644 --- a/src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java @@ -67,7 +67,7 @@ public abstract class ExperienceCommand implements TabExecutor { } String playerName = Misc.getMatchedPlayerName(args[0]); - McMMOPlayer mcMMOPlayer = UserManager.getPlayer(playerName, true); + mcMMOPlayer = UserManager.getPlayer(playerName, true); // If the mcMMOPlayer doesn't exist, create a temporary profile and check if it's present in the database. If it's not, abort the process. if (mcMMOPlayer == null) {