From f74cad45681cc0ea5706a112a0e17f14a3197e39 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 15 Dec 2016 21:17:58 +0000 Subject: coverity#1397204 Dereference null return value Change-Id: Ief4b455b316b55ebf012a8650c96da037df0135c --- cui/source/options/optlingu.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cui/source') 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(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(); -- cgit