X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fapplist.cpp;h=888ab7164cc6a6988531a3285520d74548a39d6a;hb=0b2c927e6606c0fbae889fea7085a9af12d15714;hp=922a89eec438e37ff77154ba0bf6cc2853d199ee;hpb=2f2639950dec4b97984fd6776a850e5d4703ef52;p=apps%2Fagl-service-windowmanager.git diff --git a/src/applist.cpp b/src/applist.cpp index 922a89e..888ab71 100644 --- a/src/applist.cpp +++ b/src/applist.cpp @@ -140,7 +140,14 @@ void AppList::removeSurface(unsigned surface){ */ shared_ptr AppList::lookUpClient(const string &appid) { - return this->app2client.at(appid); + if(this->app2client.count(appid) != 0) + { + return this->app2client.at(appid); + } + else + { + return nullptr; + } } /**