From bc0c0abe7e0627dede9a008265bf6b62c7b03d2b Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Fri, 19 Aug 2016 12:16:04 +1000 Subject: [PATCH] Fix NPE --- .../intellectualcrafters/plot/util/expiry/ExpireManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/util/expiry/ExpireManager.java b/Core/src/main/java/com/intellectualcrafters/plot/util/expiry/ExpireManager.java index 90b99c1c7..c5128620a 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/util/expiry/ExpireManager.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/util/expiry/ExpireManager.java @@ -366,7 +366,7 @@ public class ExpireManager { } else { opp = UUIDHandler.getUUIDWrapper().getOfflinePlayer(name); } - if ((last = opp.getLastPlayed()) != 0) { + if (opp != null && (last = opp.getLastPlayed()) != 0) { this.dates_cache.put(uuid, last); } else { return 0;