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

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

Issue 2665403002: Don't send 'Response.refactoringRequestCancelle' if the request is null. (Closed)
Patch Set: Created 3 years, 11 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 e848fbe33802977fc5b114036a2e37a6d950a5de..b076c7d18f6d78d1fece4cc436b5d401bc7af98f 100644
--- a/pkg/analysis_server/lib/src/edit/edit_domain.dart
+++ b/pkg/analysis_server/lib/src/edit/edit_domain.dart
@@ -587,8 +587,10 @@ class _RefactoringManager {
* Cancels processing of the current request and cleans up.
*/
void cancel() {
- server.sendResponse(new Response.refactoringRequestCancelled(request));
- request = null;
+ if (request != null) {
+ server.sendResponse(new Response.refactoringRequestCancelled(request));
+ request = null;
+ }
_reset();
}
« 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