landmarksui/uicontrols/src/CLmkEditorImpl.cpp
branchRCL_3
changeset 40 bb72030f01c5
parent 37 870918037e16
child 44 5033d469f7c9
--- a/landmarksui/uicontrols/src/CLmkEditorImpl.cpp	Wed Sep 01 12:31:27 2010 +0100
+++ b/landmarksui/uicontrols/src/CLmkEditorImpl.cpp	Wed Sep 15 12:05:51 2010 +0300
@@ -304,7 +304,10 @@
     delete iWaitDialogLauncher;
 
     CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
-    cba->RemoveCommandObserver(KMskCommandPos);
+    if (cba)
+        {
+        cba->RemoveCommandObserver(KMskCommandPos);
+        }
 
     if (iLmkUiUtils)
         {