From a767beee400ac8f73203263da312df7d7bf5d9b8 Mon Sep 17 00:00:00 2001 From: totemo Date: Wed, 11 Sep 2019 19:46:48 +0930 Subject: [PATCH] Version 0.8.3 Fix another NPE on login. --- pom.xml | 2 +- src/nu/nerd/tpcontrol/UUIDCache.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index f6961ba..fda9ae1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 nu.nerd TPControl - 0.8.2 + 0.8.3 jar TPControl https://github.com/NerdNu/TPControl diff --git a/src/nu/nerd/tpcontrol/UUIDCache.java b/src/nu/nerd/tpcontrol/UUIDCache.java index 119e776..a3d41f8 100644 --- a/src/nu/nerd/tpcontrol/UUIDCache.java +++ b/src/nu/nerd/tpcontrol/UUIDCache.java @@ -214,7 +214,9 @@ private synchronized void updateCache(Player p) { } // Remove old name to UUID mapping if present. - _name_to_uuid.remove(refName); + if (refName != null) { + _name_to_uuid.remove(refName); + } // Now map it correctly. _uuid_to_name.put(uuid, name);