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

Unified Diff: pkg/analysis_server/lib/src/edit/edit_domain.dart

Issue 2966813002: Add null check before returning postfix expansion (Closed)
Patch Set: Created 3 years, 6 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/edit/edit_domain.dart
diff --git a/pkg/analysis_server/lib/src/edit/edit_domain.dart b/pkg/analysis_server/lib/src/edit/edit_domain.dart
index 82056becb3f70010647287d55caf83a355c1d177..d60d677649e0f8c13437e97d2a65fadf493a88a1 100644
--- a/pkg/analysis_server/lib/src/edit/edit_domain.dart
+++ b/pkg/analysis_server/lib/src/edit/edit_domain.dart
@@ -290,7 +290,7 @@ class EditDomainHandler extends AbstractRequestHandler {
PostfixCompletionProcessor processor =
new PostfixCompletionProcessor(context);
PostfixCompletion completion = await processor.compute();
- change = completion.change;
+ change = completion?.change;
}
}
if (change == null) {
« 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