pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1624915 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
Date Sun, 14 Sep 2014 22:18:01 GMT
Author: tilman
Date: Sun Sep 14 22:18:00 2014
New Revision: 1624915

URL: http://svn.apache.org/r1624915
Log:
PDFBOX-2347: avoid COSNull object ("null" in PDF)

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java?rev=1624915&r1=1624914&r2=1624915&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
Sun Sep 14 22:18:00 2014
@@ -452,7 +452,7 @@ public class NonSequentialPDFParser exte
 
         // ---- prepare encryption if necessary
         COSBase trailerEncryptItem = document.getTrailer().getItem(COSName.ENCRYPT);
-        if (trailerEncryptItem != null)
+        if (trailerEncryptItem != null && !(trailerEncryptItem instanceof COSNull))
         {
             if (trailerEncryptItem instanceof COSObject)
             {



Mime
View raw message