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

Unified Diff: tests/language/exception_test.dart

Issue 11415028: Remove NullPointerException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed VM bugs. 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: tests/language/exception_test.dart
diff --git a/tests/language/exception_test.dart b/tests/language/exception_test.dart
index c08a872556ce0cb481595844442db42588df4119..0876c5c2327950090f6f9e7625c76fdf0a0d7331 100644
--- a/tests/language/exception_test.dart
+++ b/tests/language/exception_test.dart
@@ -21,11 +21,11 @@ class ExceptionTest {
bool correctCatch = false;
try {
- // This throws NullPointerException.
+ // This throws NullThrownError
throw null;
} on String catch (s) {
correctCatch = false;
- } on NullPointerException catch (e) {
+ } on NullThrownError catch (e) {
correctCatch = true;
} catch (x) {
correctCatch = false;

Powered by Google App Engine
This is Rietveld 408576698