Skip to content

Commit

Permalink
fix exception when clearing a server alias
Browse files Browse the repository at this point in the history
  • Loading branch information
craigraw committed Oct 27, 2022
1 parent 04a516d commit c2d3afa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public StringProperty labelProperty() {
}

public Server getServer() {
return new Server(server.getUrl(), labelProperty.get());
return new Server(server.getUrl(), labelProperty.get().isEmpty() ? null : labelProperty.get());
}
}

Expand Down

0 comments on commit c2d3afa

Please sign in to comment.