| 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 eae0df6ec62d5f51f0a5bc3b1330c03736c02854..46f196107523c3b14bf9e7a290d37eeafa5b12e1 100644
|
| --- a/pkg/analysis_server/lib/src/analysis_server.dart
|
| +++ b/pkg/analysis_server/lib/src/analysis_server.dart
|
| @@ -781,7 +781,13 @@ class AnalysisServer {
|
| .toNotification());
|
|
|
| // send to crash reporting
|
| - options.crashReportSender?.sendReport(exception, stackTrace: stackTrace);
|
| + if (options.crashReportSender != null) {
|
| + // Catch and ignore any exceptions when reporting exceptions (network
|
| + // errors or other).
|
| + options.crashReportSender
|
| + .sendReport(exception, stackTrace: stackTrace)
|
| + .catchError((_) {});
|
| + }
|
|
|
| // remember the last few exceptions
|
| if (exception is CaughtException) {
|
|
|