Fix class cast exception. See WW-4275.

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1557084 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Greg Huber
2014-01-10 11:21:45 +00:00
parent 93d55e0b53
commit 32065db1db
@@ -126,8 +126,7 @@ public class Param extends Component {
Object value = findValue(this.value);
if (suppressEmptyParameters) {
String potentialValue = (String) value;
if (potentialValue != null && potentialValue.length() > 0) {
if (value != null && !value.toString().isEmpty()) {
component.addParameter(name, value);
}
} else {