* Added some error handling for connect to server action.

This commit is contained in:
LevelX2 2015-02-07 18:15:11 +01:00
parent 974951e18d
commit ea8446d097
2 changed files with 32 additions and 3 deletions

View file

@ -328,7 +328,9 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
}
public void setWindowTitle() {
setTitle(TITLE_NAME + " Client: " + version.toString() + " Server: " + ((session != null && session.isConnected()) ? session.getVersionInfo():"<not connected>"));
setTitle(TITLE_NAME + " Client: "
+ version == null ? "<not available>" : version.toString() + " Server: "
+ ((session != null && session.isConnected()) ? session.getVersionInfo():"<not connected>"));
}
private void addTooltipContainer() {