Kaydet (Commit) f74cad45 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1397204 Dereference null return value

Change-Id: Ief4b455b316b55ebf012a8650c96da037df0135c
üst eb0e2dab
...@@ -222,7 +222,7 @@ static void lcl_SetCheckButton( SvTreeListEntry* pEntry, bool bCheck ) ...@@ -222,7 +222,7 @@ static void lcl_SetCheckButton( SvTreeListEntry* pEntry, bool bCheck )
SvLBoxButton* pItem = static_cast<SvLBoxButton*>(pEntry->GetFirstItem(SvLBoxItemType::Button)); SvLBoxButton* pItem = static_cast<SvLBoxButton*>(pEntry->GetFirstItem(SvLBoxItemType::Button));
DBG_ASSERT(pItem,"SetCheckButton:Item not found"); DBG_ASSERT(pItem,"SetCheckButton:Item not found");
if (pItem->GetType() == SvLBoxItemType::Button) if (pItem && pItem->GetType() == SvLBoxItemType::Button)
{ {
if (bCheck) if (bCheck)
pItem->SetStateChecked(); pItem->SetStateChecked();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment