[Libreoffice-commits] core.git: sc/source

Eike Rathke erack at redhat.com
Tue Apr 15 11:12:31 PDT 2014


 sc/source/ui/miscdlgs/acredlin.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 699148abdbebb689f6edb7de5011483390b77a5c
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Apr 15 20:11:06 2014 +0200

    CID#1093227: check for (unlikely) null return value
    
    Change-Id: Idca2df07ffdc41b67bf7e126ebec3243501b9cb5

diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index c98935a..d713524 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -1364,7 +1364,9 @@ IMPL_LINK( ScAcceptChgDlg, ExpandingHandle, SvxRedlinTable*, pTable )
             {
                 bool bTheTestFlag = true;
                 pEntry->EnableChildrenOnDemand(false);
-                pTheView->RemoveEntry(pTheView->FirstChild(pEntry));
+                SvTreeListEntry* pChildEntry = pTheView->FirstChild(pEntry);
+                if (pChildEntry)
+                    pTheView->RemoveEntry(pChildEntry);
 
                 if(pEntryData!=NULL)
                 {


More information about the Libreoffice-commits mailing list