Index: runtime/vm/kernel_binary.cc |
diff --git a/runtime/vm/kernel_binary.cc b/runtime/vm/kernel_binary.cc |
index 5c09d4b9f3d549e9da66f3911dccc635ac36daac..e0a81d73ffbf3e43638ffcab268b012213e92933 100644 |
--- a/runtime/vm/kernel_binary.cc |
+++ b/runtime/vm/kernel_binary.cc |
@@ -1533,7 +1533,8 @@ Program* Program::ReadFrom(Reader* reader) { |
program->libraries().GetOrCreate<Library>(i)->ReadFrom(reader); |
} |
- program->main_method_reference_ = Reference::ReadMemberFrom(reader); |
+ program->main_method_reference_ = |
+ Reference::ReadMemberFrom(reader, /*allow_null=*/true); |
return program; |
} |