Skip to content

Commit

Permalink
Check if null
Browse files Browse the repository at this point in the history
  • Loading branch information
alanocallaghan committed Feb 8, 2024
1 parent d15d8a5 commit 44d0e11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public Path fromString(String string) {

private void addListeners() {
tfModelDirectory.textProperty().bindBidirectional(InstanSegPreferences.modelDirectoryProperty());
if (!tfModelDirectory.getText().isEmpty()) {
if (tfModelDirectory.getText() != null && !tfModelDirectory.getText().isEmpty()) {
tryToPopulateChoiceBox(tfModelDirectory.getText());
}
tfModelDirectory.textProperty().addListener((v, o, n) -> tryToPopulateChoiceBox(n));
Expand Down

0 comments on commit 44d0e11

Please sign in to comment.