From c2d3afae591ff1dfd0ee0c06280a4696c245d246 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 27 Oct 2022 09:34:32 +0200 Subject: [PATCH] fix exception when clearing a server alias --- .../sparrowwallet/sparrow/preferences/ServerAliasDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }