svx/source/svdraw/svdedtv2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c80c5ae7089e0e288c2f4ef9a9af5079f020c54f
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu May 26 12:17:43 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu May 26 15:37:01 2022 +0200

    cid#1504575 Dereference before null check
    
    since...
    
    commit 8b4b852a35149b1cfffc681cbb4f57d4c0b671b3
    Date:   Mon May 23 15:48:41 2022 +0200
    
        Advanced Diagram support: Isolated IDiagramHelper, selection 
visualization
    
    we've already defered pGrp can just drop that check
    
    Change-Id: I2b36a5fdc7e49ba1a8d4be5df910be0392bb7960
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135019
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx
index 47e20d82be6a..50a7940ca752 100644
--- a/svx/source/svdraw/svdedtv2.cxx
+++ b/svx/source/svdraw/svdedtv2.cxx
@@ -1911,7 +1911,7 @@ void SdrEditView::UnGroupMarked()
             size_t nDstCnt=pGrp->GetOrdNum();
             SdrObjList* pDstLst=pM->GetPageView()->GetObjList();
             size_t nObjCount=pSrcLst->GetObjCount();
-            const bool bIsDiagram(nullptr != pGrp && pGrp->isDiagram());
+            const bool bIsDiagram(pGrp->isDiagram());
 
             // If the Group is a Diagram, it has a filler BG object to 
guarantee
             // the Diagam's dimensions. Identify that shape

Reply via email to