Fixed NPE in subset iterator tag

WW-1932


git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/branches/STRUTS_2_0_X@540569 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald J. Brown
2007-05-22 12:54:52 +00:00
parent 6b9175c510
commit 845f524255
@@ -194,7 +194,7 @@ public class SubsetIteratorTag extends StrutsBodyTagSupport {
// source
Object source = null;
if (sourceAttr == null && sourceAttr.length() <= 0) {
if (sourceAttr == null || sourceAttr.length() == 0) {
source = findValue("top");
} else {
source = findValue(sourceAttr);