diff --git a/src/main/java/org/broadinstitute/barclay/help/scanners/UnknownInlineTagScanner.java b/src/main/java/org/broadinstitute/barclay/help/scanners/UnknownInlineTagScanner.java index a2a70c9..8c179f8 100644 --- a/src/main/java/org/broadinstitute/barclay/help/scanners/UnknownInlineTagScanner.java +++ b/src/main/java/org/broadinstitute/barclay/help/scanners/UnknownInlineTagScanner.java @@ -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 tagParts = tagTree.getContent().stream().map(Object::toString).toList(); inlineTags.put(tagTree.getTagName(), tagParts);