pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1768227 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
Date Sat, 05 Nov 2016 14:49:07 GMT
Author: msahyoun
Date: Sat Nov  5 14:49:07 2016
New Revision: 1768227

URL: http://svn.apache.org/viewvc?rev=1768227&view=rev
Log:
PDFBOX-2852, PDFBOX-3547: avoid NPE in getField if supplied name is null

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java?rev=1768227&r1=1768226&r2=1768227&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
Sat Nov  5 14:49:07 2016
@@ -453,7 +453,7 @@ public final class PDAcroForm implements
         // get the field from the field tree
         for (PDField field : getFieldTree())
         {
-            if (field.getFullyQualifiedName().compareTo(fullyQualifiedName) == 0)
+        	if (field.getFullyQualifiedName().equals(fullyQualifiedName))
             {
                 return field;
             }



Mime
View raw message