pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1861191 - /pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java
Date Wed, 12 Jun 2019 19:53:57 GMT
Author: lehmi
Date: Wed Jun 12 19:53:57 2019
New Revision: 1861191

URL: http://svn.apache.org/viewvc?rev=1861191&view=rev
Log:
PDFBOX-4569: avoid endless recursion

Modified:
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java?rev=1861191&r1=1861190&r2=1861191&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java
Wed Jun 12 19:53:57 2019
@@ -785,7 +785,6 @@ public class COSParser extends BaseParse
         {
             // TODO Auto-generated catch block
             e.printStackTrace();
-            // parsedObj = COSBroken.BROKEN;
         }
         finally
         {
@@ -972,7 +971,7 @@ public class COSParser extends BaseParse
             securityHandler.decrypt(pb, objKey.getNumber(), objKey.getGeneration());
         }
 
-        if (pb != null)
+        if (pb != null && pb != COSNull.NULL)
         {
             pdfObject.setObject(pb);
         }



Mime
View raw message