Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: runtime/vm/object.cc

Issue 18463003: Implement the invoke methods (invoke, getField, setField, newInstance, apply) as internal natives. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 25019)
+++ runtime/vm/object.cc (working copy)
@@ -2738,6 +2738,10 @@
ReusableHandleScope reused_handles(isolate);
Array& flds = reused_handles.ArrayHandle();
flds ^= fields();
+ if (flds.IsNull()) {
+ // This can occur, e.g., for Null classes.
+ return Field::null();
+ }
Field& field = reused_handles.FieldHandle();
String& field_name = reused_handles.StringHandle();
intptr_t len = flds.Length();

Powered by Google App Engine
This is Rietveld 408576698