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

Unified Diff: pkg/docgen/lib/docgen.dart

Issue 65593002: Fix single library test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/lib/docgen.dart
diff --git a/pkg/docgen/lib/docgen.dart b/pkg/docgen/lib/docgen.dart
index c99919033583e5fde79f1a13bf31af5bb6662145..15be68eb7676bd0378a61df7fc520a17083e1aa5 100644
--- a/pkg/docgen/lib/docgen.dart
+++ b/pkg/docgen/lib/docgen.dart
@@ -543,7 +543,7 @@ String findElementInScope(String name, LibraryMirror currentLibrary,
if (libraryScope != null) return docName(libraryScope);
// Look in the dart core library scope.
- var coreScope = lookupFunc(_coreLibrary, name);
+ var coreScope = _coreLibrary == null? null : lookupFunc(_coreLibrary, name);
if (coreScope != null) return docName(_coreLibrary);
// If it's a reference that starts with a another library name, then it
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698