Skip to content

Commit

Permalink
CSSTUDIO-2555 Handle the case where logEntry.getDescription() returns…
Browse files Browse the repository at this point in the history
… null, also.
  • Loading branch information
abrahamwolk committed Aug 20, 2024
1 parent 4b3e52f commit 71476c3
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,15 @@ public void initialize() {
titleProperty.set(logEntry.getTitle());

textArea.textProperty().bindBidirectional(descriptionProperty);
descriptionProperty.set(logEntry.getSource() != null ? logEntry.getSource() : logEntry.getDescription());
if (logEntry.getSource() != null) {
descriptionProperty.set(logEntry.getSource());
}
else if (logEntry.getDescription() != null) {
descriptionProperty.set(logEntry.getDescription());
}
else {
descriptionProperty.set("");
}
descriptionProperty.addListener((observable, oldValue, newValue) -> isDirty = true);

Image tagIcon = ImageCache.getImage(LogEntryUpdateController.class, "/icons/add_tag.png");
Expand Down

0 comments on commit 71476c3

Please sign in to comment.