'Push' or foward depending on the remote output the app_id to the
[src/agl-compositor.git] / src / layout.c
index 1895a07..c58b39b 100644 (file)
@@ -241,6 +241,11 @@ ivi_layout_find_with_app_id(const char *app_id, struct ivi_compositor *ivi)
 {
        struct ivi_output *out;
 
+       if (!app_id) {
+               weston_log("ivi_layout_find_with_app_id() failed w/ no app_id\n");
+               return NULL;
+       }
+
        wl_list_for_each(out, &ivi->outputs, link) {
                if (!out->app_id)
                        continue;