src/gui/kernel/qsoftkeymanager_s60.cpp
changeset 23 89e065397ea6
parent 22 79de32ba3296
child 30 5dc02b23752f
--- a/src/gui/kernel/qsoftkeymanager_s60.cpp	Fri May 14 16:40:13 2010 +0300
+++ b/src/gui/kernel/qsoftkeymanager_s60.cpp	Thu May 27 13:40:48 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