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

Unified Diff: runtime/lib/string.cc

Issue 11417058: Revert "Remove NullPointerException." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « runtime/lib/regexp_patch.dart ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/string.cc
diff --git a/runtime/lib/string.cc b/runtime/lib/string.cc
index ae13fd63e8c1d9b479f554b56ef68d64c02f4535..76c097abc54cdf991dc46ceba8ff8400caf2ceef 100644
--- a/runtime/lib/string.cc
+++ b/runtime/lib/string.cc
@@ -146,7 +146,7 @@ DEFINE_NATIVE_ENTRY(Strings_concatAll, 1) {
elem ^= strings.At(i);
if (elem.IsNull()) {
GrowableArray<const Object*> args;
- Exceptions::ThrowByType(Exceptions::kNullThrown, args);
+ Exceptions::ThrowByType(Exceptions::kNullPointer, args);
}
if (!elem.IsString()) {
GrowableArray<const Object*> args;
« no previous file with comments | « runtime/lib/regexp_patch.dart ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698