wayland cnp: add null check before calling loss callback sandbox/tolszaksamsung/tizen accepted/tizen/mobile/20151223.052059 accepted/tizen/tv/20151223.052118 accepted/tizen/wearable/20151223.052408 submit/tizen/20151222.235345 submit/tizen_common/20151223.095123 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
authorThiep Ha <thiep.ha@samsung.com>
Mon, 21 Dec 2015 23:05:50 +0000 (08:05 +0900)
committerThiep Ha <thiep.ha@samsung.com>
Mon, 21 Dec 2015 23:05:50 +0000 (08:05 +0900)
commit5fcd38d3d8d21b25a5b0cd9b56c847978f2da077
treef3b582e13aa6c299cb0fe5abfa75114db7135eba
parent4b5cb359f4ae8b55b38624eafc348ec0e232f536
wayland cnp: add null check before calling loss callback

For the first time when selection is set, the sel->widget can be null.
We should check it before calling loss callback for keeping selection.

@tizen_fix

Change-Id: I505535b05189515d7bf37d52f92285e3142f9365
src/lib/elm_cnp.c