Index: pkg/analysis_server/lib/src/analysis_server.dart |
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart |
index a5a0ad5ccc91c3dadba3bda78830a878a9107af7..4a2734c3e575b8983c42b25dbb85f7b0b7305c7e 100644 |
--- a/pkg/analysis_server/lib/src/analysis_server.dart |
+++ b/pkg/analysis_server/lib/src/analysis_server.dart |
@@ -477,7 +477,7 @@ class AnalysisServer { |
* The socket from which requests are being read has been closed. |
*/ |
void done() { |
- index.stop(); |
+ index?.stop(); |
running = false; |
} |