fixed Problem setting Username in ClientConnectionHandler

#42
This commit is contained in:
schrom01 2022-04-15 21:20:03 +02:00
parent 64a6137372
commit e53a751081
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class ClientConnectionHandler extends ConnectionHandler implements Runnab
this.serverAddress.set(serverAddress); this.serverAddress.set(serverAddress);
this.serverPort.set(serverPort); this.serverPort.set(serverPort);
setConnection(NetworkHandler.openConnection(serverAddress, serverPort)); setConnection(NetworkHandler.openConnection(serverAddress, serverPort));
this.userName = new SimpleStringProperty((userName == null || userName.isBlank())? USER_NONE : userName); this.userName.set((userName == null || userName.isBlank())? USER_NONE : userName);
} }
public SimpleStringProperty getServerAddressProperty() { return serverAddress; } public SimpleStringProperty getServerAddressProperty() { return serverAddress; }