diff --git a/src/main/java/com/sparrowwallet/sparrow/preferences/ServerAliasDialog.java b/src/main/java/com/sparrowwallet/sparrow/preferences/ServerAliasDialog.java index bf8c816a..11766ba8 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().isEmpty() ? null : labelProperty.get()); + return new Server(server.getUrl(), labelProperty.get() == null || labelProperty.get().isEmpty() ? null : labelProperty.get()); } }