struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bphill...@apache.org
Subject svn commit: r1504168 - /struts/struts2/trunk/plugins/embeddedjsp/src/main/java/org/apache/struts2/el/lang/ELSupport.java
Date Wed, 17 Jul 2013 15:11:41 GMT
Author: bphillips
Date: Wed Jul 17 15:11:41 2013
New Revision: 1504168

URL: http://svn.apache.org/r1504168
Log:
WW-4126 - changed logic of is statement so that every element in the Object array is compared
to null

Modified:
    struts/struts2/trunk/plugins/embeddedjsp/src/main/java/org/apache/struts2/el/lang/ELSupport.java

Modified: struts/struts2/trunk/plugins/embeddedjsp/src/main/java/org/apache/struts2/el/lang/ELSupport.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/embeddedjsp/src/main/java/org/apache/struts2/el/lang/ELSupport.java?rev=1504168&r1=1504167&r2=1504168&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/embeddedjsp/src/main/java/org/apache/struts2/el/lang/ELSupport.java
(original)
+++ struts/struts2/trunk/plugins/embeddedjsp/src/main/java/org/apache/struts2/el/lang/ELSupport.java
Wed Jul 17 15:11:41 2013
@@ -382,7 +382,7 @@ public class ELSupport {
      */
     public final static boolean containsNulls(final Object[] obj) {
         for (int i = 0; i < obj.length; i++) {
-            if (obj[0] == null) {
+            if (obj[i] == null) {
                 return true;
             }
         }



Mime
View raw message