X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=homescreen%2Fsrc%2Fhomescreenhandler.cpp;h=c44cbb95753127b5c09f268570cd559380fd5223;hb=d1347bf236f84908fea96ba929e0e8376c2b1d78;hp=5ed1fab97cf05b83bdb35cdc1ee0b94e30bd5283;hpb=20970d846906a070305d8e96cf0735bf7fd831b1;p=apps%2Fhomescreen.git 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()); } }