Index: tests/compiler/dart2js/diagnostic_helper.dart |
diff --git a/tests/compiler/dart2js/diagnostic_helper.dart b/tests/compiler/dart2js/diagnostic_helper.dart |
index 26dac3070aecea205577bf2aec3692dc2c281604..c9b19e1feaf977ccb0cf9f529406c3dde5046343 100644 |
--- a/tests/compiler/dart2js/diagnostic_helper.dart |
+++ b/tests/compiler/dart2js/diagnostic_helper.dart |
@@ -25,7 +25,7 @@ class CollectedMessage { |
CollectedMessage( |
this.message, this.uri, this.begin, this.end, this.text, this.kind); |
- MessageKind get messageKind => message.kind; |
+ MessageKind get messageKind => message?.kind; |
String toString() { |
return '${message != null ? message.kind : ''}' |