Index: sdk/lib/_internal/compiler/implementation/deferred_load.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/deferred_load.dart (revision 25147) |
+++ sdk/lib/_internal/compiler/implementation/deferred_load.dart (working copy) |
@@ -240,6 +240,7 @@ |
compiler.enqueuer.resolution.getCachedElements(element); |
if (elements == null) return new LinkedHashSet<Element>(); |
Node node = element.parseNode(compiler); |
+ if (node == null) return new LinkedHashSet<Element>(); |
var collector = new DependencyCollector(elements, compiler); |
node.accept(collector); |
collector.dependencies.addAll(elements.otherDependencies); |