cui/source/options/optlingu.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit e88cd210690b9d14101d5800bbbf8422a9e12d3e Author: Caolán McNamara <[email protected]> Date: Thu Dec 15 21:17:58 2016 +0000 coverity#1397204 Dereference null return value Change-Id: Ief4b455b316b55ebf012a8650c96da037df0135c (cherry picked from commit f74cad45681cc0ea5706a112a0e17f14a3197e39) diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index 5990721..511c3c8 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();
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
