fix NullPointerException in MBeanView. #1644 (#1645)

This commit is contained in:
fornaix
2020-12-28 17:01:12 +08:00
committed by GitHub
parent 2e75721ddd
commit 8c7afb823e
@@ -204,7 +204,7 @@ public class MBeanView extends ResultView<MBeanModel> {
table.row(new LabelElement(title).style(Decoration.bold.fg(Color.yellow)));
for (String fieldName : fieldNames) {
Object fieldValue = descriptor.getFieldValue(fieldName);
table.row(fieldName, fieldValue.toString());
table.row(fieldName, fieldValue == null ? "" : fieldValue.toString());
}
}
}