pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leleu...@apache.org
Subject svn commit: r1490408 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/Type0FontValidator.java
Date Thu, 06 Jun 2013 19:51:19 GMT
Author: leleueri
Date: Thu Jun  6 19:51:19 2013
New Revision: 1490408

URL: http://svn.apache.org/r1490408
Log:
[PDFBox-1629] Fix NullPointer

Modified:
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/Type0FontValidator.java

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/Type0FontValidator.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/Type0FontValidator.java?rev=1490408&r1=1490407&r2=1490408&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/Type0FontValidator.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/font/Type0FontValidator.java
Thu Jun  6 19:51:19 2013
@@ -254,7 +254,7 @@ public class Type0FontValidator extends 
                 this.fontContainer.push(new ValidationError(ERROR_FONTS_CIDKEYED_CMAP_INVALID_OR_MISSING,
                         "Some elements in the CMap dictionary are missing or invalid"));
             }
-            else if (!(wmValue == wmode && cmnValue.equals(cmapName)))
+            else if (!(wmValue == wmode && cmapName.equals(cmnValue)))
             {
                 this.fontContainer.push(new ValidationError(ERROR_FONTS_CIDKEYED_CMAP_INVALID_OR_MISSING,
                         "CMapName or WMode is inconsistent"));



Mime
View raw message