Index: runtime/vm/megamorphic_cache_table.cc |
diff --git a/runtime/vm/megamorphic_cache_table.cc b/runtime/vm/megamorphic_cache_table.cc |
index 154d0e05be34e413dcdbce5ea55d401866af0890..89b4dd5f90969e8e3c281308d4f154b79613ff04 100644 |
--- a/runtime/vm/megamorphic_cache_table.cc |
+++ b/runtime/vm/megamorphic_cache_table.cc |
@@ -88,6 +88,7 @@ void MegamorphicCacheTable::PrintSizes(Isolate* isolate) { |
Array& buckets = Array::Handle(); |
const GrowableObjectArray& table = GrowableObjectArray::Handle( |
isolate->object_store()->megamorphic_cache_table()); |
+ if (table.IsNull()) return; |
for (intptr_t i = 0; i < table.Length(); i += kEntrySize) { |
cache ^= table.At(i + kEntryCacheOffset); |
buckets = cache.buckets(); |