| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index aeb798833557a3b06b90ade0ce623bd83e8a7ac1..79af5f8f3c1247c176ce8bd3216779d1af2156b9 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -6710,7 +6710,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;
|
| }
|
|
|