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

Caolán McNamara caolanm at redhat.com
Wed Oct 18 13:02:31 UTC 2017


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

New commits:
commit 811e636d920ee96e7ebd120b3931cb3da43d0143
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Oct 18 11:09:01 2017 +0100

    potential deref of empty xStateSet
    
    Change-Id: I83d876b0d966b18cdf85249b7e856e4e4f4dec27
    Reviewed-on: https://gerrit.libreoffice.org/43488
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svx/source/accessibility/AccessibleShape.cxx b/svx/source/accessibility/AccessibleShape.cxx
index b2ff186ae7cb..86cc8ba732d1 100644
--- a/svx/source/accessibility/AccessibleShape.cxx
+++ b/svx/source/accessibility/AccessibleShape.cxx
@@ -460,7 +460,7 @@ uno::Reference<XAccessibleStateSet> SAL_CALL
             xStateSet.set( new ::utl::AccessibleStateSetHelper (*pStateSet));
         }
     }
-    if (!bDisposed && mpParent && mpParent->IsDocumentSelAll())
+    if (!bDisposed && xStateSet.is() && mpParent && mpParent->IsDocumentSelAll())
     {
         ::utl::AccessibleStateSetHelper* pStateSet =
             static_cast< ::utl::AccessibleStateSetHelper*>(xStateSet.get());


More information about the Libreoffice-commits mailing list