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();