DEREF_AFTER_NULL.EX
Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I0637c8e8f5b14f6554f4aff121acad0a16bfe7e5
Json::Value params;
params["event"] = event;
- params["data"] = data;
+ if (data) {
+ params["data"] = data;
+ }
params["to"] = to;
message["method"] = method;
message["params"] = params;
Json::Value params;
params["event"] = event;
- params["data"] = data;
+ if (data) {
+ params["data"] = data;
+ }
params["to"] = to;
message["method"] = method;
message["params"] = params;