Index: dart/sdk/lib/_internal/compiler/implementation/deferred_load.dart |
diff --git a/dart/sdk/lib/_internal/compiler/implementation/deferred_load.dart b/dart/sdk/lib/_internal/compiler/implementation/deferred_load.dart |
index dffcbb9ecb23f56e47220ad002727de58ab19966..688ff6680f0fc338e1c398e3975a917ae3989a1d 100644 |
--- a/dart/sdk/lib/_internal/compiler/implementation/deferred_load.dart |
+++ b/dart/sdk/lib/_internal/compiler/implementation/deferred_load.dart |
@@ -687,6 +687,7 @@ class DeferredLoadTask extends CompilerTask { |
} |
void ensureMetadataResolved(Compiler compiler) { |
+ if (compiler.mainApp == null) return; |
_allDeferredImports[_fakeMainImport] = compiler.mainApp; |
var lastDeferred; |
// When detecting duplicate prefixes of deferred libraries there are 4 |