Chromium Code Reviews| Index: pkg/compiler/lib/src/dart2js.dart |
| diff --git a/pkg/compiler/lib/src/dart2js.dart b/pkg/compiler/lib/src/dart2js.dart |
| index b82ad535387d5ae5c7e9a48398246c9700e7f365..99a577481ec8db86be9d4ffe5861b4ba7cfba08a 100644 |
| --- a/pkg/compiler/lib/src/dart2js.dart |
| +++ b/pkg/compiler/lib/src/dart2js.dart |
| @@ -471,7 +471,8 @@ Future<api.CompilationResult> compile(List<String> argv) { |
| api.Diagnostic.INFO); |
| } |
| if (resolveOnly) { |
| - if (resolutionInputs.contains(resolutionOutput)) { |
| + if (resolutionInputs != null && |
| + resolutionInputs.contains(resolutionOutput)) { |
|
Johnni Winther
2016/06/30 11:09:33
Same problem fixed more thoroughly in https://code
|
| helpAndFail("Resolution input '${resolutionOutput}' can't be used as " |
| "resolution output. Use the '--out' option to specify another " |
| "resolution output."); |