mirror of
https://github.com/correl/mage.git
synced 2025-03-07 20:53:18 -10:00
fixed NPE in Deck Editor when not connected to server
This commit is contained in:
parent
16d09da180
commit
6cda7ea076
1 changed files with 3 additions and 1 deletions
|
@ -188,7 +188,9 @@ public class Session {
|
|||
}
|
||||
|
||||
public boolean isTestMode() {
|
||||
return serverState.isTestMode();
|
||||
if (serverState != null)
|
||||
return serverState.isTestMode();
|
||||
return false;
|
||||
}
|
||||
|
||||
public ChatPanel getChat(UUID chatId) {
|
||||
|
|
Loading…
Add table
Reference in a new issue