| 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());
|
| + }
|
| }
|
| }
|
| }
|
|
|