Skip to content

Commit

Permalink
avoid NPE on empty notes
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Jun 12, 2024
1 parent 2f9e211 commit a472cb1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,11 @@ private StringBuilder toTEINote(StringBuilder tei,

org.apache.commons.lang3.tuple.Pair<String, List<LayoutToken>> noteProcess =
fullTextParser.processShort(noteTokens, doc);

if (noteProcess == null) {
continue;
}

String labeledNote = noteProcess.getLeft();
List<LayoutToken> noteLayoutTokens = noteProcess.getRight();

Expand Down

0 comments on commit a472cb1

Please sign in to comment.