mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 13:16:44 +00:00
fix potential npe selecting server in alias dialog
This commit is contained in:
parent
e7f6f7f3db
commit
e2795c7ef3
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ public class ServerAliasDialog extends Dialog<Server> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Server getServer() {
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue