This commit is contained in:
Clebert Suconic 2017-12-20 16:02:31 -05:00
commit d609e36f68
1 changed files with 5 additions and 2 deletions

View File

@ -635,9 +635,12 @@ public interface Message {
default Map<String, Object> toPropertyMap() {
Map map = new HashMap<>();
for (SimpleString name : getPropertyNames()) {
//some property is SimpleString, which is not available for management console
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;
}