Skip to content

Commit

Permalink
testing if adding a null check fixes my picardDoc problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lbergelson committed Dec 19, 2023
1 parent f14e9a2 commit 264e876
Showing 1 changed file with 1 addition and 1 deletion.
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 264e876

Please sign in to comment.