summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/layout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/layout.c b/src/layout.c
index 1895a07..0345807 100644
--- a/src/layout.c
+++ b/src/layout.c
@@ -241,6 +241,9 @@ ivi_layout_find_with_app_id(const char *app_id, struct ivi_compositor *ivi)
{
struct ivi_output *out;
+ if (!app_id)
+ return NULL;
+
wl_list_for_each(out, &ivi->outputs, link) {
if (!out->app_id)
continue;