Skip to content

Commit 1ecd317

Browse files
committed
GH-196 heap can be null
1 parent e735f37 commit 1ecd317

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

visualvm/heapviewer.truffle/src/org/graalvm/visualvm/heapviewer/truffle/dynamicobject/DynamicObjectDetailsProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ private Long getJSNull(Heap heap) {
105105
}
106106

107107
private Long getInstanceId(Map<Heap,Long> objectId, Heap heap, String classFqn) {
108+
if (heap == null) {
109+
return Long.valueOf(0);
110+
}
108111
Long undef = objectId.get(heap);
109112

110113
if (undef == null) {

0 commit comments

Comments
 (0)