WW-3990 Returns null when trying to escape null value instead of returning an empty string

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1452255 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Lukasz Lenart
2013-03-04 11:17:47 +00:00
parent 8daf1db8d9
commit d89ac943b4
@@ -881,7 +881,7 @@ public abstract class UIBean extends Component {
if (name != null) {
return name.replaceAll("[\\/\\.\\[\\]]", "_");
} else {
return "";
return null;
}
}
@@ -895,7 +895,7 @@ public abstract class UIBean extends Component {
if (val != null) {
return val.replaceAll("\"", """);
} else {
return "";
return null;
}
}