Return string representation if hint is null in getDefaultValue.
This commit is contained in:
parent
5a519db3c6
commit
a758a479d7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue