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

Unified Diff: runtime/vm/code_generator.cc

Issue 11415028: Remove NullPointerException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added analyzer co19 expectations. Created 8 years, 1 month 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/code_generator.cc
diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc
index 008673f980544c87b1ea4eac0dd6b2e186b4b757..2b492340c55e2217d451b92ad34f75eeba2ed591 100644
--- a/runtime/vm/code_generator.cc
+++ b/runtime/vm/code_generator.cc
@@ -1379,7 +1379,7 @@ DEFINE_RUNTIME_ENTRY(ReportObjectNotClosure, 2) {
if (instance.IsNull()) {
dart_arguments.Add(&function_name);
dart_arguments.Add(&function_args);
- Exceptions::ThrowByType(Exceptions::kNullPointer, dart_arguments);
+ Exceptions::ThrowByType(Exceptions::kNullThrown, dart_arguments);
UNREACHABLE();
}

Powered by Google App Engine
This is Rietveld 408576698