Change-Id: Ia8312c2c5470aa57eb1972c92da6c1824fcf3458
for (int index = 0; index < itemCount; index++)
{
_IconListItem* pItem = dynamic_cast <_IconListItem*>(__pItemProviderAdaptor->LoadItem(DEFAULT_GROUP_INDEX, index));
- if (pItem->GetItemAccessibilityElement() != null)
+ if (pItem != null && pItem->GetItemAccessibilityElement() != null)
{
pItem->GetItemAccessibilityElement()->Activate(false);
}
if (__selected == true)
{
- if (__pArrowPressedBitmap)
- {
- __pArrowLabel->SetBackgroundBitmap(*__pArrowPressedBitmap);
- }
+ __pArrowLabel->SetBackgroundBitmap(*__pArrowPressedBitmap);
}
else
{
- if (__pArrowBitmap)
- {
- __pArrowLabel->SetBackgroundBitmap(*__pArrowBitmap);
- }
+ __pArrowLabel->SetBackgroundBitmap(*__pArrowBitmap);
}
__pArrowLabel->Invalidate();