fix exception when clearing a server alias

This commit is contained in:
Craig Raw 2022-10-27 09:34:32 +02:00
parent 04a516d56b
commit c2d3afae59

View file

@ -158,7 +158,7 @@ public class ServerAliasDialog extends Dialog<Server> {
}
public Server getServer() {
return new Server(server.getUrl(), labelProperty.get());
return new Server(server.getUrl(), labelProperty.get().isEmpty() ? null : labelProperty.get());
}
}