File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
visualvm/heapviewer.truffle/src/org/graalvm/visualvm/heapviewer/truffle Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,10 @@ public static Instance getShape(Instance instance) {
155
155
156
156
@ Override
157
157
public String getType (Heap heap ) {
158
- if (type == null ) type = computeType (heap );
158
+ if (type == null ) {
159
+ type = computeType (heap );
160
+ if (type == null ) type = "<unknown type>" ; // NOI18N
161
+ }
159
162
return type ;
160
163
}
161
164
Original file line number Diff line number Diff line change @@ -141,7 +141,10 @@ public Instance getInstance() {
141
141
142
142
@ Override
143
143
public String getType (Heap heap ) {
144
- if (type == null ) type = DetailsUtils .getInstanceString (pythonClass , null );
144
+ if (type == null ) {
145
+ type = DetailsUtils .getInstanceString (pythonClass , null );
146
+ if (type == null ) type = "<unknown type>" ; // NOI18N
147
+ }
145
148
return type ;
146
149
}
147
150
You can’t perform that action at this time.
0 commit comments