desktop/source/lib/init.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit 24ac93785abdbb7938027e0ab6f5caf2a23f816f Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Wed Mar 19 14:15:33 2025 +0100 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Thu Mar 20 13:11:52 2025 +0100 jsdialogs: check for empty id Signed-off-by: Szymon Kłos <szymon.k...@collabora.com> Change-Id: Ie8d51bec10cb1a18704af8bc5d265db999558dd1 (cherry picked from commit 68fd6a383777027d18f701fa9666ad706a100f26) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183152 Tested-by: Jenkins diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 068617a45a8a..728e8859c779 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -5042,8 +5042,12 @@ static void lcl_sendDialogEvent(unsigned long long int nWindowId, const char* pA StringMap aMap(jsdialog::jsonToStringMap(pArguments)); - if (aMap.find(u"id"_ustr) == aMap.end()) + if (aMap.find(u"id"_ustr) == aMap.end() || aMap.at(u"id"_ustr).isEmpty()) + { + SAL_WARN("lok", "sendDialogEvent: no widget id set"); + assert(false); return; + } sal_uInt64 nCurrentShellId = reinterpret_cast<sal_uInt64>(SfxViewShell::Current());