File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
visualvm/sampler.truffle/libsrc/org/graalvm/visualvm/sampler/truffle/stagent Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ private Collection<CPUSampler> getAllStackTracesInstances() {
213
213
Collection <Engine > all = getAllEngineInstances ();
214
214
215
215
for (Engine engine : all ) {
216
+ if (engine == null ) continue ;
216
217
CPUSampler sampler = CPUSampler .find (engine );
217
218
218
219
if (sampler != null ) {
@@ -251,6 +252,7 @@ private Collection<HeapMonitor> getAllHeapHistogramInstances() {
251
252
Collection <Engine > all = getAllEngineInstances ();
252
253
253
254
for (Engine engine : all ) {
255
+ if (engine == null ) continue ;
254
256
HeapMonitor heapHisto = HeapMonitor .find (engine );
255
257
256
258
if (heapHisto != null ) {
@@ -333,6 +335,7 @@ private void setMode(Mode m) {
333
335
Collection <Engine > all = getAllEngineInstances ();
334
336
335
337
for (Engine engine : all ) {
338
+ if (engine == null ) continue ;
336
339
CPUSampler sampler = CPUSampler .find (engine );
337
340
338
341
if (sampler != null ) {
You can’t perform that action at this time.
0 commit comments