From: JengHyun Kang Date: Thu, 7 Sep 2017 10:08:14 +0000 (+0900) Subject: desktop-shell: check a null reference X-Git-Tag: submit/tizen/20170907.115516~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8132a1a21969d03fe97eda6d89cebcb9ec96a0fd;p=platform%2Fcore%2Fuifw%2Fpepper.git desktop-shell: check a null reference Change-Id: Iaf430c4561fcad2447598680bdd4e722a0ea0450 --- diff --git a/src/lib/desktop-shell/shell.c b/src/lib/desktop-shell/shell.c index 33301a2..888d94d 100644 --- a/src/lib/desktop-shell/shell.c +++ b/src/lib/desktop-shell/shell.c @@ -119,7 +119,7 @@ shell_add_input_device(desktop_shell_t *shell, pepper_input_device_t *device) } seat = pepper_compositor_add_seat(shell->compositor, target_seat_name); - pepper_seat_add_input_device(seat, device); + if (seat) pepper_seat_add_input_device(seat, device); } static void