Index: pkg/analysis_server/lib/src/protocol.dart |
diff --git a/pkg/analysis_server/lib/src/protocol.dart b/pkg/analysis_server/lib/src/protocol.dart |
index 0d39c312dbf0a6811b826d9d7ca1661bf18ae985..9423825157d03a017efef429bc17f666308a9e62 100644 |
--- a/pkg/analysis_server/lib/src/protocol.dart |
+++ b/pkg/analysis_server/lib/src/protocol.dart |
@@ -265,8 +265,10 @@ class Response { |
*/ |
factory Response.fromJson(Map<String, Object> json) { |
try { |
- // TODO process result |
- String id = json[Response.ID]; |
+ var id = json[Response.ID]; |
+ if (id is! String) { |
+ return null; |
+ } |
var error = json[Response.ERROR]; |
var result = json[Response.RESULT]; |
Response response; |