Modify Prevent
authorwonyoung12.lee <wonyoung12.lee@samsung.com>
Thu, 4 Apr 2013 06:07:12 +0000 (15:07 +0900)
committerwonyoung12.lee <wonyoung12.lee@samsung.com>
Thu, 4 Apr 2013 07:19:09 +0000 (16:19 +0900)
Change-Id: I78eb13e7f505f5f402fed9db8ed3b2068901a973
Signed-off-by: wonyoung12.lee <wonyoung12.lee@samsung.com>
src/ui/controls/FUiCtrl_IconListPresenter.cpp [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 3e21abb..ce20b2a
@@ -3422,6 +3422,11 @@ _IconListPresenter::OnTickOccurred(const VisualElementAnimation& animation, cons
        {
                Canvas* pCanvas = __pCheckAnimationVE->GetCanvasN();
 
+               if (pCanvas == null)
+               {
+                       return;
+               }
+
                const Bitmap* pBitmap = null;
                pBitmap = IsItemChecked(__checkedIndex) ? __pItemDrawingProperty->GetCheckBitmap(): null;
 
@@ -4470,6 +4475,12 @@ _IconListPresenter::StartCheckAnimation(int index)
        const Bitmap* pBackgroundBitmap = __pListModel->IsItemEnabled(DEFAULT_GROUP_INDEX, index) ? (IsItemChecked(index) ? __pItemDrawingProperty->GetCheckedBackgroundBitmap() : __pItemDrawingProperty->GetUnCheckedBackgroundBitmap()) : __pItemDrawingProperty->GetDisabledCheckBitmap();
 
        Canvas* pCheckBgCanvas = pItem->GetCheckBGVisualElement()->GetCanvasN();
+
+       if (pCheckBgCanvas == null)
+       {
+               return;
+       }
+
        pCheckBgCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
        pCheckBgCanvas->Clear();