diff --git a/modules/database/src/ioc/db/dbConvertJSON.c b/modules/database/src/ioc/db/dbConvertJSON.c index 865c43313..5b36d1c61 100644 --- a/modules/database/src/ioc/db/dbConvertJSON.c +++ b/modules/database/src/ioc/db/dbConvertJSON.c @@ -162,6 +162,11 @@ long dbPutConvertJSON(const char *json, short dbrType, if(INVALID_DB_REQ(dbrType)) return S_db_badDbrtype; + if (!jlen) { + *pnRequest = 0; + return 0; + } + parser->depth = 0; parser->dbrType = dbrType; parser->dbrSize = dbValueSize(dbrType);