From a742dd71922a9195839cac976ce156729c5a2879 Mon Sep 17 00:00:00 2001 From: Sauilitired Date: Sat, 27 Dec 2014 13:28:10 +0100 Subject: [PATCH] Fixed an NPE --- .../intellectualcrafters/plot/uuid/OfflineUUIDWrapper.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/uuid/OfflineUUIDWrapper.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/uuid/OfflineUUIDWrapper.java index 1c7013ee8..9851af247 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/uuid/OfflineUUIDWrapper.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/uuid/OfflineUUIDWrapper.java @@ -25,7 +25,12 @@ public class OfflineUUIDWrapper extends UUIDWrapper { @Override public OfflinePlayer getOfflinePlayer(final UUID uuid) { final BiMap map = UUIDHandler.getUuidMap().inverse(); - final String name = map.get(uuid).value; + String name; + try { + name = map.get(uuid).value; + } catch (NullPointerException e) { + name = null; + } if (name != null) { return Bukkit.getOfflinePlayer(name); } else {