Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.3
-
None
Description
org.apache.struts2.views.java.simple.RadioHandler:62
//Namevalue needs to cast to a string from object. It's object because the
//Property can be defined as String or as Integer
String itemNameValueStr; if (nameValue instanceof java.lang.Integer || nameValue instanceof java.lang.String) itemNameValueStr = nameValue.toString(); else itemNameValueStr = null;
possible sollution?:
String itemNameValueStr = StringUtils.defaultString(nameValue == null ? null : nameValue.toString());