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

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

Issue 2917453002: Fix an npe in context_manager.dart. (Closed)
Patch Set: Created 3 years, 7 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/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 03c593699047a48d7d901fc68be86aed5900beff..e7460a9412159c7d8cf6055fa964ce14e23ceaa6 100644
--- a/pkg/analysis_server/lib/src/context_manager.dart
+++ b/pkg/analysis_server/lib/src/context_manager.dart
@@ -1044,7 +1044,7 @@ class ContextManagerImpl implements ContextManager {
ContextBuilder builder =
callbacks.createContextBuilder(info.folder, defaultContextOptions);
AnalysisOptions options = builder.getAnalysisOptions(contextRoot,
- contextRoot: info.analysisDriver.contextRoot);
+ contextRoot: info?.analysisDriver?.contextRoot);
Brian Wilkerson 2017/05/30 21:39:47 It would be good to understand why the info is nul
SourceFactory factory = builder.createSourceFactory(contextRoot, options);
if (enableNewAnalysisDriver) {
AnalysisDriver driver = info.analysisDriver;
« 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