efl_ui_grid: Fix dereferencing null pointer
authorChristopher Michael <cp.michael@samsung.com>
Thu, 14 Mar 2019 11:22:44 +0000 (07:22 -0400)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
commitb2cdcd300e6fee614ef4360255d4af5806594a4c
tree70f6f925b43164e2c200b7d8f1c2524a3c2058ed
parentd817e2c32d9fc13f2fe91136f94cff3b75d8317d
efl_ui_grid: Fix dereferencing null pointer

Summary:
Coverity reports EFL_UI_GRID_ITEM_DATA_GET can return NULL (checked
273 out of 281 times). As such, we should verify that 'id' is not NULL
here before trying to dereference it.

Fixes Coverity CID1397000

@fix

Depends on D8318

Reviewers: raster, cedric, q66, zmike, bu5hm4n, stefan

Reviewed By: cedric

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8319
src/lib/elementary/efl_ui_grid.c