Skip to content

Commit

Permalink
getNote fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hylstonnb committed Aug 22, 2023
1 parent 8e904a3 commit 77d8c3c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public String getNote(ITextUnit textUnit) {
if (textUnit != null) {

NoteAnnotation noteAnnotation = textUnit.getAnnotation(NoteAnnotation.class);

if (noteAnnotation == null) {
note = Objects.toString(textUnit.getProperty(NoteAnnotation.LOC_NOTE), null);
Property noteProp = textUnit.getProperty(NoteAnnotation.LOC_NOTE);
if (noteAnnotation == null || noteProp != null) {
note = Objects.toString(noteProp, null);
} else {
note = noteAnnotation.getNote(0).getNoteText();
}
Expand Down

0 comments on commit 77d8c3c

Please sign in to comment.