Index: tools/testing/dart/test_runner.dart |
diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart |
index f8570c0200990185da7b3f31b382d74733f81544..3500da98aa2d2b90833c932eecc08bec8ed4bdc2 100644 |
--- a/tools/testing/dart/test_runner.dart |
+++ b/tools/testing/dart/test_runner.dart |
@@ -135,7 +135,7 @@ class ProcessCommand extends Command { |
String get reproductionCommand { |
var env = new StringBuffer(); |
- environmentOverrides.forEach((key, value) => |
+ environmentOverrides?.forEach((key, value) => |
(io.Platform.operatingSystem == 'windows') |
? env.write('set $key=${escapeCommandLineArgument(value)} & ') |
: env.write('$key=${escapeCommandLineArgument(value)} ')); |