From: Michelle Legrand Date: Tue, 3 Mar 2015 09:17:02 +0000 (+0100) Subject: task_switcher: add variable verification. X-Git-Tag: submit/tizen/20150401.105206^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a556974a2f9d78603b8f51508fb019058189cbc;p=platform%2Fupstream%2Felementary.git task_switcher: add variable verification. Summary: If dbus is not installed the task switcher raise a segmentation error. So we check if the returned variable by eo_do is not null before continuing. @fix Change-Id: I55ce510f798f6349a7b7d8132f884cd5a2b715c1 Signed-off-by: Cedric BAIL --- diff --git a/src/bin/test_task_switcher.c b/src/bin/test_task_switcher.c index a0e14dd0a..ff7d7e45c 100644 --- a/src/bin/test_task_switcher.c +++ b/src/bin/test_task_switcher.c @@ -300,6 +300,8 @@ _app_open(const char *package) const char *app_package = NULL; eo_do(app, app_package = elm_app_client_package_get()); + if (!app_package) + return; if (!strcmp(package, app_package)) return; }