diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-16 12:13:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-16 20:32:34 +0200 |
commit | 71c10fcd14e35cea25641db9c2fd063fd8f8956f (patch) | |
tree | e77a0882ca5acc7c05dfac03dca6f26a64e6d042 /sw/source/ui/config | |
parent | 6254ff0fb034b1728df0da4f2986639d7fd0bd16 (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.cxx | 3 |
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(); |