pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1794090 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFParser.java
Date Fri, 05 May 2017 18:11:33 GMT
Author: lehmi
Date: Fri May  5 18:11:33 2017
New Revision: 1794090

URL: http://svn.apache.org/viewvc?rev=1794090&view=rev
Log:
PDFBOX-3545: added null check

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFParser.java?rev=1794090&r1=1794089&r2=1794090&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFParser.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFParser.java Fri May 
5 18:11:33 2017
@@ -213,7 +213,7 @@ public class PDFParser extends COSParser
             rebuildTrailer = true;
         }
         // check if the trailer contains a Root object
-        if (isLenient() && trailer.getItem(COSName.ROOT) == null)
+        if (isLenient() && trailer != null && trailer.getItem(COSName.ROOT)
== null)
         {
             rebuildTrailer = true;
         }



Mime
View raw message