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 01:48:37 +0000 |
commit | f74cad45681cc0ea5706a112a0e17f14a3197e39 (patch) | |
tree | 5e1610060f72863085d9d57e928d190900c320f2 /cui | |
parent | eb0e2dabde9d96892929f6902d8d10d722b83c3e (diff) |
coverity#1397204 Dereference null return value
Change-Id: Ief4b455b316b55ebf012a8650c96da037df0135c
Diffstat (limited to 'cui')
-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 a9826065108e..cd322650e540 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(); |