Return string representation if hint is null in getDefaultValue.

This commit is contained in:
hns 2003-06-18 16:09:37 +00:00
parent 5a519db3c6
commit a758a479d7

View file

@ -197,7 +197,7 @@ public class MapWrapper extends ScriptableObject {
}
public Object getDefaultValue(Class hint) {
if (hint == String.class) {
if (hint == null || hint == String.class) {
return map == null ? "{}" : map.toString();
}
return super.getDefaultValue(hint);