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

Unified Diff: pkg/analysis_server/lib/src/context_manager.dart

Issue 987663002: Fix for subscribing for notifications for files in packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
Index: pkg/analysis_server/lib/src/context_manager.dart
diff --git a/pkg/analysis_server/lib/src/context_manager.dart b/pkg/analysis_server/lib/src/context_manager.dart
index 8af64b3f40d93bef9ec327223660860c200bfc75..5debcd222f1d6ef6e08d3b77c2f3b1a768cc03c1 100644
--- a/pkg/analysis_server/lib/src/context_manager.dart
+++ b/pkg/analysis_server/lib/src/context_manager.dart
@@ -612,6 +612,9 @@ abstract class ContextManager {
if (context == null) {
return source;
}
+ if (context.sourceFactory == null) {
Brian Wilkerson 2015/03/06 15:04:27 This should never happen. We should minimally writ
scheglov 2015/03/06 22:10:34 Done. You're right, it shouldn't. I found it runn
+ return null;
+ }
Uri uri = context.sourceFactory.restoreUri(source);
return file.createSource(uri);
}

Powered by Google App Engine
This is Rietveld 408576698