Archiviert
13
0

Fix NPE in getId()

Dieser Commit ist enthalten in:
johni0702 2014-04-14 09:53:05 +02:00
Ursprung 74947c02af
Commit 2476ab67a6

Datei anzeigen

@ -87,7 +87,7 @@ public class WrappedGameProfile extends AbstractWrapper {
* @return The UUID of the player, or NULL if not computed. * @return The UUID of the player, or NULL if not computed.
*/ */
public String getId() { public String getId() {
if (GET_UUID_STRING == null) if (GET_UUID_STRING != null)
return (String) GET_UUID_STRING.get(handle); return (String) GET_UUID_STRING.get(handle);
return getProfile().getId() != null ? getProfile().getId().toString() : null; return getProfile().getId() != null ? getProfile().getId().toString() : null;
} }