Archiviert
13
0

Merge pull request #32 from DarkSeraphim/patch-1

Fix NPE when writing PlayerInfoData to packet
Dieser Commit ist enthalten in:
Dan Mulloy 2015-01-08 20:10:31 -05:00
Commit 5e5eff5e5f

Datei anzeigen

@ -80,7 +80,7 @@ public class PlayerInfoData {
specific.profile.handle,
specific.ping,
EnumWrappers.getGameModeConverter().getGeneric(EnumWrappers.getGameModeClass(), specific.gameMode),
specific.displayName.handle
specific.displayName != null ? specific.displayName.handle : null
);
return result;
} catch (Exception e) {
@ -149,4 +149,4 @@ public class PlayerInfoData {
return String.format("PlayerInfoData { profile=%s, ping=%s, gameMode=%s, displayName=%s }",
profile, ping, gameMode, displayName);
}
}
}