Skip to content

Commit 32ae938

Browse files
committed
GH-608 'entriesObj' can be null in case the system properties are represended by a custom subclass of java.util.Properties
1 parent d7fb537 commit 32ae938

File tree

1 file changed

+3
-1
lines changed
  • visualvm/libs.profiler/lib.profiler.heap/src/org/graalvm/visualvm/lib/jfluid/heap

1 file changed

+3
-1
lines changed

visualvm/libs.profiler/lib.profiler.heap/src/org/graalvm/visualvm/lib/jfluid/heap/HprofProxy.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ static Properties getProperties(Instance propertiesInstance) {
5656
Instance map = (Instance) propertiesInstance.getValueOfField("map"); // NOI18N
5757
if (map != null) {
5858
entriesObj = (ObjectArrayDump) map.getValueOfField("table"); // NOI18N
59-
return getPropertiesFromTable(entriesObj, props, "key", "val"); // NOI18N
59+
if (entriesObj != null) {
60+
return getPropertiesFromTable(entriesObj, props, "key", "val"); // NOI18N
61+
}
6062
} else { // old Hashtable
6163
entriesObj = (ObjectArrayDump) propertiesInstance.getValueOfField("elementData"); // NOI18N
6264
if (entriesObj != null) {

0 commit comments

Comments
 (0)