fixed N_SE-42441 N_SE-42212
authorDivya Darshini <d.darshini@samsung.com>
Fri, 21 Jun 2013 07:38:41 +0000 (13:08 +0530)
committerDivya Darshini <d.darshini@samsung.com>
Fri, 21 Jun 2013 07:38:41 +0000 (13:08 +0530)
Change-Id: I0d4995a565e6b458671cae457c41165dc112f1c7

src/CtContactDetailsForm.cpp

index 3ceb60d..91a3d6b 100644 (file)
@@ -1546,7 +1546,10 @@ ContactDetailsForm::OnTouchPressed(const Tizen::Ui::Control& source, const Tizen
        else if (source.GetName().Equals(GROUP_LABEL, true))
        {
                Panel* pPanel = static_cast<Panel*>(source.GetParent()->GetControl(GROUP_STYLE_PANEL));
-               pPanel->SetBackgroundColor(COLOR_PRESSED);
+               if (pPanel != null)
+               {
+                       pPanel->SetBackgroundColor(COLOR_PRESSED);
+               }
        }
 }
 
@@ -1561,7 +1564,10 @@ ContactDetailsForm::OnTouchReleased(const Tizen::Ui::Control& source, const Tize
        else if (source.GetName().Equals(GROUP_LABEL, true))
        {
                Panel* pPanel = static_cast<Panel*>(source.GetParent()->GetControl(GROUP_STYLE_PANEL));
-               pPanel->SetBackgroundColor(COLOR_GROUP_STYLE);
+               if (pPanel != null)
+               {
+                       pPanel->SetBackgroundColor(COLOR_GROUP_STYLE);
+               }
        }
        else if (source.GetName().Equals(FAVORITE_LABEL, true))
        {