Index: pkg/analyzer/lib/src/summary/summarize_ast.dart |
diff --git a/pkg/analyzer/lib/src/summary/summarize_ast.dart b/pkg/analyzer/lib/src/summary/summarize_ast.dart |
index 7273e3f474e31696f5fb08a33670d44ee28c56b2..e60e9d9e5935d33bcb39a4aa014b7b10a6482ab2 100644 |
--- a/pkg/analyzer/lib/src/summary/summarize_ast.dart |
+++ b/pkg/analyzer/lib/src/summary/summarize_ast.dart |
@@ -1372,7 +1372,7 @@ class _SummarizeAstVisitor extends RecursiveAstVisitor { |
@override |
void visitPartOfDirective(PartOfDirective node) { |
- isCoreLibrary = node.libraryName.name == 'dart.core'; |
+ isCoreLibrary = node.libraryName?.name == 'dart.core'; |
isPartOf = true; |
} |