Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index ebff9f58502924cc571bd29659474ae6245f26f5..edd9448cc10b184b9234bf0faf4a65d0c30f9e56 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -758,7 +758,7 @@ void Heap::GarbageCollectionEpilogue() { |
void Heap::PreprocessStackTraces() { |
WeakFixedArray::Iterator iterator(weak_stack_trace_list()); |
FixedArray* elements; |
- while ((elements = iterator.Next<FixedArray>())) { |
+ while ((elements = iterator.Next<FixedArray>()) != nullptr) { |
for (int j = 1; j < elements->length(); j += 4) { |
Object* maybe_code = elements->get(j + 2); |
// If GC happens while adding a stack trace to the weak fixed array, |