pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1861057 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightStreamEngine.java
Date Tue, 11 Jun 2019 17:29:52 GMT
Author: lehmi
Date: Tue Jun 11 17:29:51 2019
New Revision: 1861057

URL: http://svn.apache.org/viewvc?rev=1861057&view=rev
Log:
PDFBOX-4566: use the correct getter

Modified:
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightStreamEngine.java

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightStreamEngine.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightStreamEngine.java?rev=1861057&r1=1861056&r2=1861057&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightStreamEngine.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightStreamEngine.java
Tue Jun 11 17:29:51 2019
@@ -269,8 +269,9 @@ public abstract class PreflightStreamEng
         /*
          * Search a Filter declaration in the InlinedImage dictionary. The LZWDecode Filter
is forbidden.
          */
-        COSName filter = dict.getCOSName(COSName.F, COSName.FILTER);
-        FilterHelper.isAuthorizedFilter(context, filter != null ? filter.getName() : null);
+        COSBase filter = dict.getDictionaryObject(COSName.F, COSName.FILTER);
+        FilterHelper.isAuthorizedFilter(context,
+                filter instanceof COSName ? ((COSName) filter).getName() : null);
     }
 
     /**



Mime
View raw message