summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--homescreen/src/homescreenhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/homescreen/src/homescreenhandler.cpp b/homescreen/src/homescreenhandler.cpp
index 5ed1fab..c44cbb9 100644
--- a/homescreen/src/homescreenhandler.cpp
+++ b/homescreen/src/homescreenhandler.cpp
@@ -126,6 +126,7 @@ void HomescreenHandler::appTerminated(const QString& application_id)
HMI_DEBUG("HomeScreen", "Application %s terminated, activating last app", application_id.toStdString().c_str());
if (apps_stack.contains(application_id)) {
apps_stack.removeOne(application_id);
- appStarted(apps_stack.last());
+ if (!apps_stack.isEmpty())
+ appStarted(apps_stack.last());
}
}