elmentary: fix a potential null pointer dereferencing in elm_box
authorWonki Kim <wonki_.kim@samsung.com>
Fri, 13 Oct 2017 19:00:59 +0000 (12:00 -0700)
committerCedric Bail <cedric@osg.samsung.com>
Fri, 13 Oct 2017 19:01:04 +0000 (12:01 -0700)
commitc60b889d3518ec4680ad5d095b1ea5dd5cce309c
treedd0ce69c8ac4f364585fa1f31982e08c8d7a3747
parent295403769b2cc49f9e79f4231bbabc858821018b
elmentary: fix a potential null pointer dereferencing in elm_box

Summary:
if 'evas_object_smart_data_get' return null somehow,
logic that dereference the smart data pointer will cause problems.
This patch prevent a potential bug in advance.

Reviewers: jpeg, woohyun, cedric

Differential Revision: https://phab.enlightenment.org/D5290

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
src/lib/elementary/elm_box.c