Skip to content

Commit 40b5a0e

Browse files
committed
PDFBOX-6009: avoid NPE
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1925703 13f79535-47bb-0310-9956-ffa450edef68
1 parent e527553 commit 40b5a0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdfbox/src/main/java/org/apache/pdfbox/multipdf/Splitter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ private COSBase createDictionaryClone(COSBase src, COSBase dstParent, COSDiction
467467
// replace annotation with clone
468468
dstDict.setItem(COSName.OBJ, dstObj);
469469
}
470-
else
470+
else if (srcObj != null) // 079177.pdf
471471
{
472472
removePossibleOrphanAnnotation(srcObj, srcDict, currentPageDict, dstDict);
473473
}

0 commit comments

Comments
 (0)