pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1654383 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/xobject/XObjImageValidator.java
Date Fri, 23 Jan 2015 21:05:37 GMT
Author: tilman
Date: Fri Jan 23 21:05:37 2015
New Revision: 1654383

URL: http://svn.apache.org/r1654383
Log:
PDFBOX-2576: fix regression by previous commit

Modified:
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/xobject/XObjImageValidator.java

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/xobject/XObjImageValidator.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/xobject/XObjImageValidator.java?rev=1654383&r1=1654382&r2=1654383&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/xobject/XObjImageValidator.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/xobject/XObjImageValidator.java
Fri Jan 23 21:05:37 2015
@@ -84,7 +84,7 @@ public class XObjImageValidator extends
      */
     protected void checkInterpolate() throws ValidationException
     {
-        if (this.xobject.getBoolean("Interpolate", true))
+        if (this.xobject.getItem("Interpolate") != null && this.xobject.getBoolean("Interpolate",
true))
         {
             context.addValidationError(new ValidationError(ERROR_GRAPHIC_UNEXPECTED_VALUE_FOR_KEY,
                     "Unexpected 'true' value for 'Interpolate' Key"));



Mime
View raw message