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

Unified Diff: pkg/analyzer/lib/src/analyzer_impl.dart

Issue 979193004: Fix introduced bug (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/analyzer_impl.dart
diff --git a/pkg/analyzer/lib/src/analyzer_impl.dart b/pkg/analyzer/lib/src/analyzer_impl.dart
index 0712a69a75edf4b39e4b67297034d56ebf264d37..a9f72a31a3f122b8b418ade5ae2f97ac8c22e92f 100644
--- a/pkg/analyzer/lib/src/analyzer_impl.dart
+++ b/pkg/analyzer/lib/src/analyzer_impl.dart
@@ -152,6 +152,9 @@ class AnalyzerImpl {
}
source = new FileBasedSource.con2(sourceFile.toURI(), sourceFile);
Uri uri = context.sourceFactory.restoreUri(source);
+ if (uri == null) {
+ return source;
+ }
return new FileBasedSource.con2(uri, sourceFile);
}
« 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