javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtdateeditor.cpp
branchRCL_3
changeset 21 4376525cdefb
parent 19 71c436fe3ce0
child 24 6c158198356e
--- a/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtdateeditor.cpp	Wed Jun 09 09:34:07 2010 +0300
+++ b/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtdateeditor.cpp	Mon Jun 21 15:32:50 2010 +0300
@@ -222,7 +222,7 @@
 void CSwtDateEditor::MakeVisible(TBool aVisible)
 {
     // Close VKB. Do it here instead of FocusChange to avoid split input flicker.
-    if (iEditor->IsFocused() && !aVisible)
+    if (iEditor && iEditor->IsFocused() && !aVisible)
     {
         CCoeFep* fep = iDisplay.CoeEnv()->Fep();
         if (fep)
@@ -541,7 +541,7 @@
     ASSERT(iEditor);
 
     // Close VKB. Do it here instead of FocusChange to avoid split input flicker.
-    if (iEditor->IsFocused() && aDimmed)
+    if (iEditor && iEditor->IsFocused() && aDimmed)
     {
         CCoeFep* fep = iDisplay.CoeEnv()->Fep();
         if (fep)
@@ -1177,7 +1177,7 @@
 TSwtPeer CSwtDateEditor::Dispose()
 {
     // Close VKB.
-    if (iEditor->IsFocused())
+    if (iEditor && iEditor->IsFocused())
     {
         CCoeFep* fep = iDisplay.CoeEnv()->Fep();
         if (fep)