summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-20 16:51:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-20 22:10:29 +0200
commite114afa40289f16c14b9591ed97539b7ab673dc6 (patch)
treea96b8b797035955da15b3fd071a9794c1f2b8548 /sc
parent73b322a581b98a74c9d1868aca6d8ae05696697c (diff)
cid#1451628 Dereference after null check
Change-Id: I6ec54ac4568959e70a2d894bf4a564ac1bed627d Reviewed-on: https://gerrit.libreoffice.org/76027 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocument.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx
index e947b655a9cb..5f434733a557 100644
--- a/sc/source/ui/Accessibility/AccessibleDocument.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx
@@ -286,8 +286,7 @@ ScChildrenShapes::ScChildrenShapes(ScAccessibleDocument* pAccessibleDocument, Sc
xSelectionSupplier = uno::Reference<view::XSelectionSupplier>(pViewFrame->GetFrame().GetController(), uno::UNO_QUERY);
if (xSelectionSupplier.is())
{
- if (mpAccessibleDocument)
- xSelectionSupplier->addSelectionChangeListener(mpAccessibleDocument);
+ xSelectionSupplier->addSelectionChangeListener(mpAccessibleDocument);
uno::Reference<drawing::XShapes> xShapes(mpViewShell->getSelectedXShapes());
if (xShapes.is())
mnShapesSelected = xShapes->getCount();