mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2025-01-19 14:51:29 +01:00
Fix NPE in getId()
This commit is contained in:
parent
74947c02af
commit
2476ab67a6
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user