Index: pkg/testing/lib/src/analyze.dart |
diff --git a/pkg/testing/lib/src/analyze.dart b/pkg/testing/lib/src/analyze.dart |
index 8719df746a90c69c5b4097c9aedb69639e5db9b5..fa2ccd5c6846f80e59f75debde0a974df4131c51 100644 |
--- a/pkg/testing/lib/src/analyze.dart |
+++ b/pkg/testing/lib/src/analyze.dart |
@@ -237,7 +237,7 @@ Future<Null> analyzeUris( |
await for (AnalyzerDiagnostic diagnostic in diagnostics) { |
if (diagnostic.uri != null) { |
String path = toFilePath(diagnostic.uri); |
- if (!(analysisOptions?.path.contains("/pkg/compiler/") ?? false) && |
+ if (!(analysisOptions?.path?.contains("/pkg/compiler/") ?? false) && |
diagnostic.code.startsWith("STRONG_MODE") && |
(path.startsWith("pkg/compiler/") || |
path.startsWith("tests/compiler/dart2js/"))) { |