mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-28 05:35:28 +01:00
Merge pull request #32 from DarkSeraphim/patch-1
Fix NPE when writing PlayerInfoData to packet
This commit is contained in:
commit
5e5eff5e5f
@ -80,7 +80,7 @@ public class PlayerInfoData {
|
|||||||
specific.profile.handle,
|
specific.profile.handle,
|
||||||
specific.ping,
|
specific.ping,
|
||||||
EnumWrappers.getGameModeConverter().getGeneric(EnumWrappers.getGameModeClass(), specific.gameMode),
|
EnumWrappers.getGameModeConverter().getGeneric(EnumWrappers.getGameModeClass(), specific.gameMode),
|
||||||
specific.displayName.handle
|
specific.displayName != null ? specific.displayName.handle : null
|
||||||
);
|
);
|
||||||
return result;
|
return result;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user