From 5d583f50601ffe2c22e1a8fd6a9f29d8986f5896 Mon Sep 17 00:00:00 2001 From: chen-chao666 <1790599142@qq.com> Date: Mon, 13 Jan 2025 15:47:00 +0800 Subject: [PATCH] =?UTF-8?q?cbb=E4=BB=A3=E7=A0=81=E6=A3=80=E8=A7=86?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ddes_json/ddes_json.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ddes_json/ddes_json.c b/src/ddes_json/ddes_json.c index d316852..0ead9dd 100644 --- a/src/ddes_json/ddes_json.c +++ b/src/ddes_json/ddes_json.c @@ -907,6 +907,9 @@ bool32 json_is_null(json_t *json, text_t *key) } json_val_t *jval; jval = (json_val_t *)cm_hmap_find(&json->props, &g_json_hfs2, key); + if (jval == NULL) { + return CM_FALSE; + } char *val = JSON_OFFSET_VAL(jval) + sizeof(jstr_len_t); char *compareUpper = "NULL"; char *compareLower = "null"; -- Gitee