pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1824682 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
Date Sun, 18 Feb 2018 18:15:27 GMT
Author: msahyoun
Date: Sun Feb 18 18:15:27 2018
New Revision: 1824682

URL: http://svn.apache.org/viewvc?rev=1824682&view=rev
Log:
PDFBOX-4071: avoid potential ClassCastException

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1824682&r1=1824681&r2=1824682&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Sun Feb 18
18:15:27 2018
@@ -874,7 +874,7 @@ public class PDDocument implements Close
         for (PDSignatureField field : getSignatureFields())
         {
             COSBase value = field.getCOSObject().getDictionaryObject(COSName.V);
-            if (value != null)
+            if (value instanceof COSDictionary)
             {
                 signatures.add(new PDSignature((COSDictionary)value));
             }



Mime
View raw message