| Index: pkg/analyzer/lib/src/summary/pub_summary.dart
|
| diff --git a/pkg/analyzer/lib/src/summary/pub_summary.dart b/pkg/analyzer/lib/src/summary/pub_summary.dart
|
| index 83737a7a1cf6bd87889d31b42cb23ecc37c9d096..132fb4ef0881e9718204f284ed618ed52cfc66c2 100644
|
| --- a/pkg/analyzer/lib/src/summary/pub_summary.dart
|
| +++ b/pkg/analyzer/lib/src/summary/pub_summary.dart
|
| @@ -224,14 +224,18 @@ class PubSummaryManager {
|
| * its computation, so that it might be available later for other contexts
|
| * referencing the same packages.
|
| */
|
| - List<LinkedPubPackage> getLinkedBundles(
|
| - AnalysisContext context, PackageBundle sdkBundle) {
|
| + List<LinkedPubPackage> getLinkedBundles(AnalysisContext context) {
|
| + PackageBundle sdkBundle = context.sourceFactory.dartSdk.getLinkedBundle();
|
| + if (sdkBundle == null) {
|
| + return const <LinkedPubPackage>[];
|
| + }
|
| +
|
| Map<PubPackage, PackageBundle> unlinkedBundles =
|
| getUnlinkedBundles(context);
|
|
|
| // If no unlinked bundles, there is nothing we can try to link.
|
| if (unlinkedBundles.isEmpty) {
|
| - return <LinkedPubPackage>[];
|
| + return const <LinkedPubPackage>[];
|
| }
|
|
|
| // Create graph nodes for packages.
|
|
|