| Index: pkg/compiler/lib/src/deferred_load.dart
|
| diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart
|
| index c8056a2fc3b9c722f5b68eecb18bf61696b36ad2..949a37bde7fba0308f626736bb914056fe73a636 100644
|
| --- a/pkg/compiler/lib/src/deferred_load.dart
|
| +++ b/pkg/compiler/lib/src/deferred_load.dart
|
| @@ -909,7 +909,13 @@ class _DeclaredDeferredImport implements _DeferredImport {
|
| String computeImportDeferName(Compiler compiler) {
|
| String result;
|
| if (declaration.isDeferred) {
|
| - result = declaration.prefix.name;
|
| + if (declaration.prefix != null) {
|
| + result = declaration.prefix.name;
|
| + } else {
|
| + // This happens when the deferred import isn't declared with a prefix.
|
| + assert(compiler.compilationFailed);
|
| + result = '';
|
| + }
|
| } else {
|
| // Finds the first argument to the [DeferredLibrary] annotation
|
| List<MetadataAnnotation> metadatas = declaration.metadata;
|
|
|