| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index ead0845c6bccc2b7b33f4a80feb8c4372d88f909..0dd2a0aeca730e4c76650e2d4f296a692ce930fb 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -6722,7 +6722,7 @@ void Function::RestoreICDataMap(
|
| ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data) const {
|
| Zone* zone = Thread::Current()->zone();
|
| const Array& saved_icd = Array::Handle(zone, ic_data_array());
|
| - if (saved_icd.Length() == 0) {
|
| + if (saved_icd.IsNull() || (saved_icd.Length() == 0)) {
|
| deopt_id_to_ic_data->Clear();
|
| return;
|
| }
|
|
|