summaryrefslogtreecommitdiff
path: root/sw/source/ui/config
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-16 12:13:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-16 20:32:34 +0200
commit71c10fcd14e35cea25641db9c2fd063fd8f8956f (patch)
treee77a0882ca5acc7c05dfac03dca6f26a64e6d042 /sw/source/ui/config
parent6254ff0fb034b1728df0da4f2986639d7fd0bd16 (diff)
cid#1448483 Dereference null return value
Change-Id: Ia773b8350f1cb5b78d4ec712293f2d6e18280c09 Reviewed-on: https://gerrit.libreoffice.org/75717 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/config')
-rw-r--r--sw/source/ui/config/optcomp.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/config/optcomp.cxx b/sw/source/ui/config/optcomp.cxx
index 439fbb8285a6..c400441c6b08 100644
--- a/sw/source/ui/config/optcomp.cxx
+++ b/sw/source/ui/config/optcomp.cxx
@@ -105,7 +105,8 @@ SwCompatibilityOptPage::SwCompatibilityOptPage(vcl::Window* pParent, const SfxIt
if ( pEntry )
{
SvLBoxButton* pButton = static_cast<SvLBoxButton*>(pEntry->GetFirstItem(SvLBoxItemType::Button));
- if(bChecked)
+ assert(pButton);
+ if (bChecked)
pButton->SetStateChecked();
else
pButton->SetStateUnchecked();