Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 300070befde0c5323671432aae90db733c4d2115..0c959cd387390bde40cf85246db640950a0f51b3 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -11666,6 +11666,7 @@ bool ExceptionHandlers::HasCatchAll(intptr_t try_index) const { |
void ExceptionHandlers::SetHandledTypes(intptr_t try_index, |
const Array& handled_types) const { |
ASSERT((try_index >= 0) && (try_index < num_entries())); |
+ ASSERT(!handled_types.IsNull()); |
const Array& handled_types_data = |
Array::Handle(raw_ptr()->handled_types_data_); |
handled_types_data.SetAt(try_index, handled_types); |