Skip to content

Commit

Permalink
Guard against null in exportedDeclarations.
Browse files Browse the repository at this point in the history
I was not able to find the root reason of the problem :-(

R=brianwilkerson@google.com

Bug: dart-lang/sdk#38261
Change-Id: Ib9a78366548688eab231fc941b29f608bdb6b15e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/116261
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
  • Loading branch information
scheglov authored and commit-bot@chromium.org committed Sep 9, 2019
1 parent b461490 commit fbd21a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/analyzer/lib/src/services/available_declarations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ class DeclarationsTracker {
file.path,
file.uri,
file.isLibraryDeprecated,
file.exportedDeclarations,
file.exportedDeclarations ?? const [],
);
_idToLibrary[file.id] = library;
_changesController.add(
Expand Down Expand Up @@ -735,7 +735,7 @@ class DeclarationsTracker {
libraryFile.path,
libraryFile.uri,
libraryFile.isLibraryDeprecated,
libraryFile.exportedDeclarations,
libraryFile.exportedDeclarations ?? const [],
);
_idToLibrary[library.id] = library;
changedLibraries.add(library);
Expand Down

0 comments on commit fbd21a0

Please sign in to comment.