fixed title + NPE on DeckEditor

This commit is contained in:
betasteward 2015-08-21 09:03:35 -04:00
parent 3a96ff7933
commit aa5e0baeee
2 changed files with 2 additions and 1 deletions

View file

@ -765,6 +765,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
public boolean connect(Connection connection) {
client = new Client(instance);
boolean result = client.connect(connection, version);
setWindowTitle();
if (result) {
updateDatabase(connection.isForceDBComparison(), serverState);
}

View file

@ -191,7 +191,7 @@ public class DeckEditorPanel extends javax.swing.JPanel {
//this.cardTableSelector.loadCards(this.bigCard);
this.btnExit.setVisible(true);
this.btnImport.setVisible(true);
if (!MageFrame.getClient().getServerState().isTestMode()) {
if (MageFrame.getClient().getServerState() != null && !MageFrame.getClient().getServerState().isTestMode()) {
this.btnLoad.setVisible(true);
}
this.deckArea.showSideboard(true);