src/gui/kernel/qsoftkeymanager_s60.cpp
branchRCL_3
changeset 12 25a739ee40f4
parent 8 3f74d0d4af4c
child 13 cc75c76972ee
--- a/src/gui/kernel/qsoftkeymanager_s60.cpp	Wed Apr 21 09:15:16 2010 +0300
+++ b/src/gui/kernel/qsoftkeymanager_s60.cpp	Wed Apr 21 11:15:19 2010 +0300
@@ -78,6 +78,8 @@
     // Note: Cannot use IsDisplayingMenuOrDialog since CBA update can be triggered before
     // menu/dialog CBA is actually displayed i.e. it is being costructed.
     CEikButtonGroupContainer *appUiCba = S60->buttonGroupContainer();
+    if (!appUiCba)
+        return true;
     // CEikButtonGroupContainer::Current returns 0 if CBA is not visible at all
     CEikButtonGroupContainer *currentCba = CEikButtonGroupContainer::Current();
     // Check if softkey need to be update even they are not visible