summaryrefslogtreecommitdiff
path: root/svx/source/accessibility
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-18 11:09:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-18 15:02:04 +0200
commit811e636d920ee96e7ebd120b3931cb3da43d0143 (patch)
tree379030883f26c4b4d62dcbb6dbe68a18f333c070 /svx/source/accessibility
parentaa3c054fe5d7b082532f1108f30a54bc4cdeb64c (diff)
potential deref of empty xStateSet
Change-Id: I83d876b0d966b18cdf85249b7e856e4e4f4dec27 Reviewed-on: https://gerrit.libreoffice.org/43488 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r--svx/source/accessibility/AccessibleShape.cxx2
1 files changed, 1 insertions, 1 deletions
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());