Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1996)

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/LibraryImportScope.java

Issue 638733002: Fix for issue 21266 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/LibraryImportScope.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/LibraryImportScope.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/LibraryImportScope.java
index 5bfea4059cea76550738b7c582e5f96196a045c2..d92d959c693c12d0ba83b05303dcee5caaf8d893 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/LibraryImportScope.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/LibraryImportScope.java
@@ -164,9 +164,11 @@ public class LibraryImportScope extends Scope {
ArrayList<String> indirectSources = new ArrayList<String>();
for (int i = 0; i < count; i++) {
LibraryElement importedLibrary = imports[i].getImportedLibrary();
- for (LibraryElement exportedLibrary : importedLibrary.getExportedLibraries()) {
- if (exportedLibrary == library) {
- indirectSources.add(importedLibrary.getDefiningCompilationUnit().getDisplayName());
+ if (importedLibrary != null) {
+ for (LibraryElement exportedLibrary : importedLibrary.getExportedLibraries()) {
+ if (exportedLibrary == library) {
+ indirectSources.add(importedLibrary.getDefiningCompilationUnit().getDisplayName());
+ }
}
}
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698