pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1854505 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java
Date Thu, 28 Feb 2019 07:44:20 GMT
Author: tilman
Date: Thu Feb 28 07:44:19 2019
New Revision: 1854505

URL: http://svn.apache.org/viewvc?rev=1854505&view=rev
Log:
PDFBOX-4476: avoid NPE, as suggested by Derek Liu

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java?rev=1854505&r1=1854504&r2=1854505&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java Thu
Feb 28 07:44:19 2019
@@ -155,7 +155,8 @@ public class PDPageTree implements COSOb
             }
             else
             {
-                LOG.warn("COSDictionary expected, but got " + base.getClass().getSimpleName());
+                LOG.warn("COSDictionary expected, but got " +
+                        (base == null ? " null" : base.getClass().getSimpleName()));
             }
         }
 



Mime
View raw message