diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-15 21:17:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-12-16 09:11:21 +0000 |
commit | e88cd210690b9d14101d5800bbbf8422a9e12d3e (patch) | |
tree | e1bcf5917ccd25a57b2bb2f8a81a4c38c1c1c59b | |
parent | d85003a8af8b454b34eea0ac67c8dd9184a0b6d3 (diff) |
coverity#1397204 Dereference null return value
Change-Id: Ief4b455b316b55ebf012a8650c96da037df0135c
(cherry picked from commit f74cad45681cc0ea5706a112a0e17f14a3197e39)
-rw-r--r-- | cui/source/options/optlingu.cxx | 2 |
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(); |