layout: Add NULL check in _elm_layout_text_set function
authorJaeun Choi <jaeun12.choi@samsung.com>
Thu, 30 Jun 2016 05:20:44 +0000 (14:20 +0900)
committerJaeun Choi <jaeun12.choi@samsung.com>
Thu, 30 Jun 2016 05:20:44 +0000 (14:20 +0900)
commit92a67f1a61e79a16eeeb6ac5f68cc286a3d3be72
tree17da51333ddd78b39a92be6d08e3d161e36d6767
parent366b24726cda20827a6c3df4fa083d58079a71ef
layout: Add NULL check in _elm_layout_text_set function

When the parameter 'text' is NULL in elm_layout_text_set function,
the sub object data with the same part name is removed
from the layout's sub object list and the function returns immediately.
However, if the text part doesn't exist in the list,
a new sub object data is appended to the list even though the text is NULL.
This patch adds NULL check so the function can return in such cases.
src/lib/elementary/elm_layout.c