| Index: dart/sdk/lib/_internal/compiler/implementation/mirrors_used.dart
|
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/mirrors_used.dart b/dart/sdk/lib/_internal/compiler/implementation/mirrors_used.dart
|
| index 27d505cb42e966ca2059da76debe2514f2e1fd9e..e30b95867f081bb60dc3a22be1e1df3b76631d43 100644
|
| --- a/dart/sdk/lib/_internal/compiler/implementation/mirrors_used.dart
|
| +++ b/dart/sdk/lib/_internal/compiler/implementation/mirrors_used.dart
|
| @@ -101,7 +101,7 @@ class MirrorUsageAnalyzerTask extends CompilerTask {
|
| /// Collect @MirrorsUsed annotations in all libraries. Called by the
|
| /// compiler after all libraries are loaded, but before resolution.
|
| void analyzeUsage(LibraryElement mainApp) {
|
| - if (compiler.mirrorsLibrary == null) return;
|
| + if (mainApp == null || compiler.mirrorsLibrary == null) return;
|
| measure(analyzer.run);
|
| List<String> symbols = analyzer.mergedMirrorUsage.symbols;
|
| List<Element> targets = analyzer.mergedMirrorUsage.targets;
|
|
|