Merge pull request #2330 from ZhouBox/main

ekuiper:check encode json str
This commit is contained in:
fengzeroz
2024-11-29 13:46:18 +08:00
committed by GitHub
+1 -1
View File
@@ -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;
}