From 216c2f0e6898b9447434c26691722686ddf022fd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 7 Dec 2020 21:24:19 +0300 Subject: fix for rare crash in meta contacts --- plugins/Dbx_mdbx/src/dbsettings.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/Dbx_mdbx/src') diff --git a/plugins/Dbx_mdbx/src/dbsettings.cpp b/plugins/Dbx_mdbx/src/dbsettings.cpp index 2d85ef0779..6ca3049a72 100644 --- a/plugins/Dbx_mdbx/src/dbsettings.cpp +++ b/plugins/Dbx_mdbx/src/dbsettings.cpp @@ -129,6 +129,9 @@ LBL_Seek: if (cc && cc->IsMeta() && ValidLookupName(szModule, szSetting)) { if (contactID = db_mc_getDefault(contactID)) { szModule = Proto_GetBaseAccountName(contactID); + if (szModule == nullptr) // smth went wrong + return 1; + moduleNameLen = strlen(szModule); goto LBL_Seek; } -- cgit v1.2.3