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

Unified Diff: runtime/vm/service/message.dart

Issue 1202583002: Misc service fixes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 | « runtime/bin/vmservice/server.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « runtime/bin/vmservice/server.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698