[layout] Add NULL check in _elm_layout_text_set function 98/77298/3
authorJaeun Choi <jaeun12.choi@samsung.com>
Wed, 29 Jun 2016 09:28:54 +0000 (18:28 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 30 Jun 2016 05:53:13 +0000 (22:53 -0700)
commit0bc47671c51e9c2056d112107254f9b304f26990
treeef47a5a0d292edfc92992a3c3480a34d3a89682c
parent9e9e666a534eac24313c704f7c214140825e0286
[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.

Change-Id: Ia3a26864acc7139e530839b542ba00fc454667a8
Signed-off-by: Jaeun Choi <jaeun12.choi@samsung.com>
src/lib/elm_layout.c