summaryrefslogtreecommitdiff
path: root/legacy/edje/src/lib/edje_entry.c
diff options
context:
space:
mode:
authorJihoon Kim <imfine98@gmail.com>2012-12-20 02:28:12 +0000
committerJihoon Kim <imfine98@gmail.com>2012-12-20 02:28:12 +0000
commit5db9286ed2ef61c8224399be747532ea2e58e335 (patch)
treebf5f50e9940f52fdd780982a8c3b3884e5175abb /legacy/edje/src/lib/edje_entry.c
parentad6fdc585a56952912c334af5210cfe9d42daa9f (diff)
edje_entry: NULL checking should be processed before accessing
SVN revision: 81417
Diffstat (limited to '')
-rw-r--r--legacy/edje/src/lib/edje_entry.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/legacy/edje/src/lib/edje_entry.c b/legacy/edje/src/lib/edje_entry.c
index 0d067ab91f..38b74713fa 100644
--- a/legacy/edje/src/lib/edje_entry.c
+++ b/legacy/edje/src/lib/edje_entry.c
@@ -98,9 +98,9 @@ _edje_entry_focus_in_cb(void *data, Evas_Object *o __UNUSED__, const char *emiss
98 Entry *en; 98 Entry *en;
99 99
100 rp = data; 100 rp = data;
101 if ((rp->type != EDJE_RP_TYPE_TEXT) || 101 if ((!rp) || (rp->type != EDJE_RP_TYPE_TEXT) ||
102 (!rp->typedata.text)) return; 102 (!rp->typedata.text)) return;
103 if (!rp || !rp->typedata.text->entry_data || !rp->edje || !rp->edje->obj) return; 103 if (!rp->typedata.text->entry_data || !rp->edje || !rp->edje->obj) return;
104 104
105 en = rp->typedata.text->entry_data; 105 en = rp->typedata.text->entry_data;
106 if (!en || !en->imf_context) return; 106 if (!en || !en->imf_context) return;
@@ -120,9 +120,9 @@ _edje_entry_focus_out_cb(void *data, Evas_Object *o __UNUSED__, const char *emis
120 Entry *en; 120 Entry *en;
121 121
122 rp = data; 122 rp = data;
123 if ((rp->type != EDJE_RP_TYPE_TEXT) || 123 if ((!rp) || (rp->type != EDJE_RP_TYPE_TEXT) ||
124 (!rp->typedata.text)) return; 124 (!rp->typedata.text)) return;
125 if (!rp || !rp->typedata.text->entry_data) return; 125 if (!rp->typedata.text->entry_data) return;
126 126
127 en = rp->typedata.text->entry_data; 127 en = rp->typedata.text->entry_data;
128 if (!en || !en->imf_context) return; 128 if (!en || !en->imf_context) return;