summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-12-15 21:17:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-12-16 09:11:21 +0000
commite88cd210690b9d14101d5800bbbf8422a9e12d3e (patch)
treee1bcf5917ccd25a57b2bb2f8a81a4c38c1c1c59b
parentd85003a8af8b454b34eea0ac67c8dd9184a0b6d3 (diff)
coverity#1397204 Dereference null return value
Change-Id: Ief4b455b316b55ebf012a8650c96da037df0135c (cherry picked from commit f74cad45681cc0ea5706a112a0e17f14a3197e39)
-rw-r--r--cui/source/options/optlingu.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx
index 599072104551..511c3c8c8e92 100644
--- a/cui/source/options/optlingu.cxx
+++ b/cui/source/options/optlingu.cxx
@@ -222,7 +222,7 @@ static void lcl_SetCheckButton( SvTreeListEntry* pEntry, bool bCheck )
SvLBoxButton* pItem = static_cast<SvLBoxButton*>(pEntry->GetFirstItem(SvLBoxItemType::Button));
DBG_ASSERT(pItem,"SetCheckButton:Item not found");
- if (pItem->GetType() == SvLBoxItemType::Button)
+ if (pItem && pItem->GetType() == SvLBoxItemType::Button)
{
if (bCheck)
pItem->SetStateChecked();