mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
prevent NPE
it seems repeated momir ai games and you switch to human player and start any game causes the NPE resulting to crashing the UI
This commit is contained in:
@@ -64,8 +64,6 @@ public class PlayerView extends GameEntityView {
|
||||
}
|
||||
|
||||
public String getLobbyPlayerName() {
|
||||
if (get(TrackableProperty.LobbyPlayerName) == null)
|
||||
return ""; //todo find the root cause why this would return null after succesful start of game and could freeze the UI?
|
||||
return get(TrackableProperty.LobbyPlayerName);
|
||||
}
|
||||
void updateLobbyPlayerName(Player p) {
|
||||
|
||||
Reference in New Issue
Block a user