summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-09-01 13:26:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-01 15:45:00 +0200
commite4b2f7c048a0115b6e9b7feee0ce990df33e0ece (patch)
tree36c2d58b2a02fcb2c1cd3fd0ff9884d5a2c07bf6 /svx
parent1dbf4a111486ee4e5e2d9da0bbf5544742ae7805 (diff)
cid#1513474 Explicit null dereferenced
coverity can't see that the logic is such that nullptr is impossible here, so add an assert to make it happy Change-Id: I666dde47851d468c0b9e282c389fe07e640028fe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139164 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdedtv2.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx
index 4c608ddbc1c7..caaeb93f1a00 100644
--- a/svx/source/svdraw/svdedtv2.cxx
+++ b/svx/source/svdraw/svdedtv2.cxx
@@ -1849,6 +1849,7 @@ void SdrEditView::GroupMarked()
}
if (pGrp!=nullptr)
{
+ assert(pDstLst); // keep coverity happy
aNewMark.InsertEntry(SdrMark(pGrp.get(),pPV));
const size_t nCount=pDstLst->GetObjCount();
pCurrentLst->InsertObject(pGrp.get(),nInsPos);