Prevent issue
authorManoj Das <m.das@samsung.com>
Wed, 17 Apr 2013 15:01:47 +0000 (20:31 +0530)
committerManoj Das <m.das@samsung.com>
Wed, 17 Apr 2013 15:01:47 +0000 (20:31 +0530)
Change-Id: I97cf7ddfb179658bc36de883b5b462e4520c0b85

src/ClkAlarmEditorForm.cpp

index 4a48330..1bff34b 100644 (file)
@@ -2508,8 +2508,11 @@ AlarmEditorForm::OnKeypadOpened(Control& source)
 
        if (&source == (static_cast<Control*>(__pEditFieldHour)))
        {
-               __pScrollPanel->SetBounds(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height);
-               __pScrollPanel->SetScrollBarVisible(true);
+               if(__pScrollPanel != null)
+               {
+                       __pScrollPanel->SetBounds(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height);
+                       __pScrollPanel->SetScrollBarVisible(true);
+               }
                GetFooter()->SetShowState(true);
                GetFooter()->Invalidate(true);
        }