mirror of
https://github.com/apache/struts.git
synced 2026-08-06 15:17:00 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user