diff options
author | Sung-jae Park <nicesj.park@samsung.com> | 2013-07-15 12:46:41 +0900 |
---|---|---|
committer | Sung-jae Park <nicesj.park@samsung.com> | 2013-07-15 12:46:41 +0900 |
commit | 8c74498dd4116b77ccb257501e2e745a22de0e5f (patch) | |
tree | cd3f7219682107dc31dabb46f91cd83cd0e27451 /src/livebox.c | |
parent | 501ae85f873ed9345c519d6a3d589d9262aa8e8c (diff) | |
download | livebox-f4b282406b52d58d19af4454bacfa56b846cc5ad.tar.gz livebox-f4b282406b52d58d19af4454bacfa56b846cc5ad.tar.bz2 livebox-f4b282406b52d58d19af4454bacfa56b846cc5ad.zip |
Fix the accessiblity event feed bug.submit/tizen_2.2/20130717.053107submit/tizen_2.2/20130717.010333submit/tizen_2.2/20130716.1732122.2_release
Change-Id: I6cfd6d53886765d31b675892176d993a8309e272
Diffstat (limited to 'src/livebox.c')
-rw-r--r-- | src/livebox.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/livebox.c b/src/livebox.c index f6a6732..adf4c25 100644 --- a/src/livebox.c +++ b/src/livebox.c @@ -473,7 +473,16 @@ static inline int event_handler_wrapper(struct livebox_buffer *buffer, enum buff int ret; pkgname = provider_buffer_pkgname(buffer); - id = provider_buffer_pkgname(buffer); + if (!pkgname) { + ErrPrint("pkgname is not valid\n"); + return LB_STATUS_ERROR_INVALID; + } + + id = provider_buffer_id(buffer); + if (!id) { + ErrPrint("id is not valid[%s]\n", pkgname); + return LB_STATUS_ERROR_INVALID; + } ret = cbdata->handler(buffer, event, timestamp, x, y, cbdata->cbdata); @@ -488,6 +497,7 @@ static inline int event_handler_wrapper(struct livebox_buffer *buffer, enum buff case BUFFER_EVENT_SCROLL_MOVE: case BUFFER_EVENT_SCROLL_DOWN: case BUFFER_EVENT_UNHIGHLIGHT: + DbgPrint("Accessibility event: %d\n", event); if (ret < 0) (void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR); else |