Index: runtime/vm/service/message.dart |
diff --git a/runtime/vm/service/message.dart b/runtime/vm/service/message.dart |
index 7b07baac5e6ee2d9bcc8223d78f36e00e0d1820c..631f0a7673a4c3804ede6e0dd21dd18f31d0ceff 100644 |
--- a/runtime/vm/service/message.dart |
+++ b/runtime/vm/service/message.dart |
@@ -36,7 +36,9 @@ class Message { |
Message.fromJsonRpc(this.client, Map map) |
: serial = map['id'], method = map['method'] { |
- params.addAll(map['params']); |
+ if (map['params'] != null) { |
+ params.addAll(map['params']); |
+ } |
} |
static String _methodNameFromUri(Uri uri) { |