Index: runtime/vm/class_table.cc |
diff --git a/runtime/vm/class_table.cc b/runtime/vm/class_table.cc |
index c9a817ce6598058e5187c44d632b10cc2f407d00..bb0374f8a4de29fd76b8ff3c11b1e6b570a13aff 100644 |
--- a/runtime/vm/class_table.cc |
+++ b/runtime/vm/class_table.cc |
@@ -195,6 +195,12 @@ void ClassTable::Print() { |
String& name = String::Handle(); |
for (intptr_t i = 1; i < top_; i++) { |
+ if (!HasValidClassAt(i)) { |
+ continue; |
+ } |
+ if (i == kFreeListElement) { |
+ continue; |
+ } |
cls = At(i); |
if (cls.raw() != reinterpret_cast<RawClass*>(0)) { |
name = cls.Name(); |