Skip to content

Commit

Permalink
Adding a null check for Java 21 picardDoc problem (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbergelson authored Jan 7, 2025
1 parent d4e1c40 commit 010cf8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Void scan(final DocTree t, final Void unused) {

// unknown inline tags might be custom tags, so break them down and return the parts
// for the caller to parse
if (t.getKind().equals(DocTree.Kind.UNKNOWN_INLINE_TAG)) {
if (t != null && t.getKind().equals(DocTree.Kind.UNKNOWN_INLINE_TAG)) {
final UnknownInlineTagTree tagTree = (UnknownInlineTagTree) t;
final List<String> tagParts = tagTree.getContent().stream().map(Object::toString).toList();
inlineTags.put(tagTree.getTagName(), tagParts);
Expand Down

0 comments on commit 010cf8e

Please sign in to comment.