Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 7bf95a0dbd29193a2ecf3dd639ef4eb369029d49..b19ba7d9b205307402f94f3accd1ff6a35f58d76 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -12488,7 +12488,10 @@ const char* ICData::ToCString() const { |
RawFunction* ICData::Owner() const { |
Object& obj = Object::Handle(raw_ptr()->owner_); |
- if (obj.IsFunction()) { |
+ if (obj.IsNull()) { |
+ ASSERT(Dart::snapshot_kind() == Snapshot::kAppNoJIT); |
+ return Function::null(); |
+ } else if (obj.IsFunction()) { |
return Function::Cast(obj).raw(); |
} else { |
ICData& original = ICData::Handle(); |