Skip to content

Commit

Permalink
fix: make sure to return a valid value also for missing property in s…
Browse files Browse the repository at this point in the history
…equences recyclable flag, issue #10375
  • Loading branch information
tglman committed Jan 28, 2025
1 parent 4009e18 commit f861fc5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,8 @@ public synchronized OSequence setName(final String name) {
}

public synchronized boolean getRecyclable() {
return tlDocument.get().field(FIELD_RECYCLABLE, OType.BOOLEAN);
Boolean value = tlDocument.get().field(FIELD_RECYCLABLE, OType.BOOLEAN);
return Boolean.TRUE.equals(value);
}

public synchronized void setRecyclable(final boolean recyclable) {
Expand Down

0 comments on commit f861fc5

Please sign in to comment.