struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mr...@apache.org
Subject svn commit: r540569 - /struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/views/jsp/iterator/SubsetIteratorTag.java
Date Tue, 22 May 2007 12:54:53 GMT
Author: mrdon
Date: Tue May 22 05:54:52 2007
New Revision: 540569

URL: http://svn.apache.org/viewvc?view=rev&rev=540569
Log:
Fixed NPE in subset iterator tag
WW-1932

Modified:
    struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/views/jsp/iterator/SubsetIteratorTag.java

Modified: struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/views/jsp/iterator/SubsetIteratorTag.java
URL: http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/views/jsp/iterator/SubsetIteratorTag.java?view=diff&rev=540569&r1=540568&r2=540569
==============================================================================
--- struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/views/jsp/iterator/SubsetIteratorTag.java
(original)
+++ struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/views/jsp/iterator/SubsetIteratorTag.java
Tue May 22 05:54:52 2007
@@ -194,7 +194,7 @@
 
         // source
         Object source = null;
-        if (sourceAttr == null && sourceAttr.length() <= 0) {
+        if (sourceAttr == null || sourceAttr.length() == 0) {
             source = findValue("top");
         } else {
             source = findValue(sourceAttr);



Mime
View raw message