pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1681573 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/metadata/SynchronizedMetaDataValidation.java
Date Mon, 25 May 2015 09:45:06 GMT
Author: tilman
Date: Mon May 25 09:45:06 2015
New Revision: 1681573

URL: http://svn.apache.org/r1681573
Log:
PDFBOX-2804: NPE potential wasn't intended

Modified:
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/metadata/SynchronizedMetaDataValidation.java

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/metadata/SynchronizedMetaDataValidation.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/metadata/SynchronizedMetaDataValidation.java?rev=1681573&r1=1681572&r2=1681573&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/metadata/SynchronizedMetaDataValidation.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/metadata/SynchronizedMetaDataValidation.java
Mon May 25 09:45:06 2015
@@ -282,7 +282,7 @@ public class SynchronizedMetaDataValidat
         if (item != null)
         {
             // automatically strip trailing Nul values
-            if (producer == null)
+            if (producer != null)
             {
                 producer = removeTrailingNul(producer);
             }
@@ -324,7 +324,7 @@ public class SynchronizedMetaDataValidat
         if (item != null)
         {
             // automatically strip trailing Nul values
-            if (creatorTool == null)
+            if (creatorTool != null)
             {
                 creatorTool = removeTrailingNul(creatorTool);
             }



Mime
View raw message