Fix for Prevent issue CID - 63598
authorPrakalathan Ponnusamy <prakalath.p@samsung.com>
Fri, 5 Jul 2013 10:11:41 +0000 (15:41 +0530)
committerPrakalathan Ponnusamy <prakalath.p@samsung.com>
Fri, 5 Jul 2013 10:19:19 +0000 (15:49 +0530)
Change-Id: Ia8312c2c5470aa57eb1972c92da6c1824fcf3458

src/ui/controls/FUiCtrl_IconListPresenter.cpp
src/ui/controls/FUiCtrl_OptionMenuItem.cpp

index 67a35fa..c7812d5 100644 (file)
@@ -1017,7 +1017,7 @@ _IconListPresenter::UpdateList(void)
                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);
                        }
index 5bc7eca..0cd1d37 100755 (executable)
@@ -630,17 +630,11 @@ _OptionMenuItem::DrawArrow(void)
 
        if (__selected == true)
        {
-               if (__pArrowPressedBitmap)
-               {
-                       __pArrowLabel->SetBackgroundBitmap(*__pArrowPressedBitmap);
-               }
+               __pArrowLabel->SetBackgroundBitmap(*__pArrowPressedBitmap);
        }
        else
        {
-               if (__pArrowBitmap)
-               {
-                       __pArrowLabel->SetBackgroundBitmap(*__pArrowBitmap);
-               }
+               __pArrowLabel->SetBackgroundBitmap(*__pArrowBitmap);
        }
 
        __pArrowLabel->Invalidate();