pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1844208 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXrefStreamParser.java
Date Thu, 18 Oct 2018 06:45:25 GMT
Author: tilman
Date: Thu Oct 18 06:45:24 2018
New Revision: 1844208

URL: http://svn.apache.org/viewvc?rev=1844208&view=rev
Log:
PDFBOX-4353: avoid NullPointerException

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXrefStreamParser.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXrefStreamParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXrefStreamParser.java?rev=1844208&r1=1844207&r2=1844208&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXrefStreamParser.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXrefStreamParser.java
Thu Oct 18 06:45:24 2018
@@ -80,7 +80,7 @@ public class PDFXrefStreamParser extends
         {
             indexArray = new COSArray();
             indexArray.add(COSInteger.ZERO);
-            indexArray.add(stream.getDictionaryObject(COSName.SIZE));
+            indexArray.add(COSInteger.get(stream.getInt(COSName.SIZE, 0)));
         }
 
         List<Long> objNums = new ArrayList<Long>();



Mime
View raw message