diff --git a/src/main/java/com/sparrowwallet/sparrow/preferences/ServerAliasDialog.java b/src/main/java/com/sparrowwallet/sparrow/preferences/ServerAliasDialog.java index 988c5bdc..bf8c816a 100644 --- a/src/main/java/com/sparrowwallet/sparrow/preferences/ServerAliasDialog.java +++ b/src/main/java/com/sparrowwallet/sparrow/preferences/ServerAliasDialog.java @@ -158,7 +158,7 @@ public class ServerAliasDialog extends Dialog { } public Server getServer() { - return new Server(server.getUrl(), labelProperty.get()); + return new Server(server.getUrl(), labelProperty.get().isEmpty() ? null : labelProperty.get()); } }