Index: src/type-info.cc |
diff --git a/src/type-info.cc b/src/type-info.cc |
index 32aef1cc5ef4472a8d2cb842240882f4a608cbdf..769354781d8ee2291228cfd18bbce31784c95c64 100644 |
--- a/src/type-info.cc |
+++ b/src/type-info.cc |
@@ -356,7 +356,7 @@ void TypeFeedbackOracle::CompareTypes(TypeFeedbackId id, |
Map* raw_map = code->FindFirstMap(); |
if (raw_map != NULL) { |
raw_map = raw_map->CurrentMapForDeprecated(); |
- if (!CanRetainOtherContext(raw_map, *native_context_)) { |
+ if (raw_map != NULL && !CanRetainOtherContext(raw_map, *native_context_)) { |
map = handle(raw_map, isolate_); |
} |
} |