mirror of
https://github.com/apache/struts.git
synced 2026-08-11 09:36:57 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user