We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d3c835 commit 31b949fCopy full SHA for 31b949f
kernel/src/main/java/com/itextpdf/kernel/pdf/tagutils/TagTreePointer.java
@@ -721,7 +721,8 @@ PdfStructElem getCurrentStructElem() {
721
throw new PdfException(PdfException.TagTreePointerIsInInvalidStateItPointsAtFlushedElementUseMoveToRoot);
722
}
723
724
- if (currentStructElem.getPdfObject().getIndirectReference().isFree()) { // is removed
+ PdfIndirectReference indRef = currentStructElem.getPdfObject().getIndirectReference();
725
+ if (indRef != null && indRef.isFree()) { // is removed
726
throw new PdfException(PdfException.TagTreePointerIsInInvalidStateItPointsAtRemovedElementUseMoveToRoot);
727
728
0 commit comments