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

Unified Diff: runtime/lib/string.cc

Issue 11415028: Remove NullPointerException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments. 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/lib/string.cc
diff --git a/runtime/lib/string.cc b/runtime/lib/string.cc
index 76c097abc54cdf991dc46ceba8ff8400caf2ceef..ae13fd63e8c1d9b479f554b56ef68d64c02f4535 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::kNullPointer, args);
+ Exceptions::ThrowByType(Exceptions::kNullThrown, args);
}
if (!elem.IsString()) {
GrowableArray<const Object*> args;

Powered by Google App Engine
This is Rietveld 408576698