From e2795c7ef39ebcf667f07bde33eb869238dc7180 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Fri, 28 Oct 2022 09:41:31 +0200 Subject: [PATCH] fix potential npe selecting server in alias dialog --- .../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 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()); } }