svtools/source/uno/unoevent.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit c597be9bb60e31d32370e79a2989ff54bee8e8ec
Author: Caolán McNamara <[email protected]>
AuthorDate: Wed Jul 24 11:11:24 2019 +0100
Commit: Caolán McNamara <[email protected]>
CommitDate: Thu Jul 25 09:27:00 2019 +0200
cid#1448414 silence Explicit null dereferenced
Change-Id: I8f378b935929cedfab30aa98b89a026c272dca2e
Reviewed-on: https://gerrit.libreoffice.org/76246
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Caolán McNamara <[email protected]>
diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx
index 4604af791521..ab955e46489e 100644
--- a/svtools/source/uno/unoevent.cxx
+++ b/svtools/source/uno/unoevent.cxx
@@ -456,6 +456,7 @@ SvMacroTableEventDescriptor::SvMacroTableEventDescriptor(
const SvEventDescription* pSupportedMacroItems) :
SvDetachedEventDescriptor(pSupportedMacroItems)
{
+ assert(pSupportedMacroItems);
for(sal_Int16 i = 0; mpSupportedMacroItems[i].mnEvent !=
SvMacroItemId::NONE; i++)
{
const SvMacroItemId nEvent = mpSupportedMacroItems[i].mnEvent;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits