This closes #1704
This commit is contained in:
commit
d609e36f68
|
@ -635,9 +635,12 @@ public interface Message {
|
||||||
default Map<String, Object> toPropertyMap() {
|
default Map<String, Object> toPropertyMap() {
|
||||||
Map map = new HashMap<>();
|
Map map = new HashMap<>();
|
||||||
for (SimpleString name : getPropertyNames()) {
|
for (SimpleString name : getPropertyNames()) {
|
||||||
//some property is SimpleString, which is not available for management console
|
|
||||||
Object value = getObjectProperty(name.toString());
|
Object value = getObjectProperty(name.toString());
|
||||||
map.put(name.toString(), value == null ? null : value.toString());
|
//some property is SimpleString, which is not available for management console
|
||||||
|
if (value instanceof SimpleString) {
|
||||||
|
value = value.toString();
|
||||||
|
}
|
||||||
|
map.put(name.toString(), value);
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue