From 2476ab67a6e7956bbe10d01c02a35e1d94d03a7e Mon Sep 17 00:00:00 2001 From: johni0702 Date: Mon, 14 Apr 2014 09:53:05 +0200 Subject: [PATCH] Fix NPE in getId() --- .../com/comphenix/protocol/wrappers/WrappedGameProfile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/WrappedGameProfile.java b/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/WrappedGameProfile.java index ad70ea55..b2b023f9 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/WrappedGameProfile.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/WrappedGameProfile.java @@ -87,7 +87,7 @@ public class WrappedGameProfile extends AbstractWrapper { * @return The UUID of the player, or NULL if not computed. */ public String getId() { - if (GET_UUID_STRING == null) + if (GET_UUID_STRING != null) return (String) GET_UUID_STRING.get(handle); return getProfile().getId() != null ? getProfile().getId().toString() : null; }