mirror of
https://github.com/emqx/neuron.git
synced 2026-10-27 04:19:50 +08:00
Merge pull request #2330 from ZhouBox/main
ekuiper:check encode json str
This commit is contained in:
@@ -112,7 +112,7 @@ void send_data(neu_plugin_t *plugin, neu_reqresp_trans_data_t *trans_data)
|
||||
do {
|
||||
|
||||
rv = neu_json_encode_by_fn(&resp, json_encode_read_resp, &json_str);
|
||||
if (0 != rv) {
|
||||
if (0 != rv || json_str == NULL) {
|
||||
plog_error(plugin, "fail encode trans data to json");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user