Naviframe: Safety codes for null pointer dereferencing
authorgodlytalias14573465 <godly.talias@samsung.com>
Tue, 21 Apr 2020 11:45:45 +0000 (17:15 +0530)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 5 May 2020 23:37:39 +0000 (08:37 +0900)
Change-Id: Id6929d3c296395dee8f6e1f1c3f6e97f33953e90
Signed-off-by: godlytalias14573465 <godly.talias@samsung.com>
src/lib/elementary/elc_naviframe.c

index 57ec7f67db404bc0c33828b73415563fdb75fe8d..0affafb5d0f4f990fd7c17f851b015b50eee6a01 100755 (executable)
@@ -1813,12 +1813,12 @@ _deferred(void *data, const Efl_Event *event EINA_UNUSED)
         //TIZEN ONLY(20161208): Support tizen transition
         //_send_signal(cur, signals_cur[nfo->push]);
         //_send_signal(other, nfo->push ? signals_new : signals_prev);
-        if (_tizen_effect_enabled_get(cur))
+        if (cur && _tizen_effect_enabled_get(cur))
           {
              if (nfo->push)
                {
                   //TIZEN_ONLY(28Jan2020): Seamless Transition
-                  if (other->perspective_obj)
+                  if (other && other->perspective_obj)
                     {
                        if (nf_mod->tizen_seamless_push_deferred_effect)
                          nf_mod->tizen_seamless_push_deferred_effect(WIDGET(cur), VIEW(cur), EINA_TRUE, other->perspective_obj);
@@ -1845,7 +1845,7 @@ _deferred(void *data, const Efl_Event *event EINA_UNUSED)
         else
           _send_signal(cur, signals_cur[nfo->push]);
 
-        if (_tizen_effect_enabled_get(other))
+        if (other && _tizen_effect_enabled_get(other))
           {
              if (nfo->push)
                {
@@ -1863,7 +1863,7 @@ _deferred(void *data, const Efl_Event *event EINA_UNUSED)
              else
                {
                   //TIZEN_ONLY(28Jan2020): Seamless Transition
-                  if (cur->perspective_obj)
+                  if (cur && cur->perspective_obj)
                     {
                        if (nf_mod->tizen_seamless_pop_deferred_effect)
                          nf_mod->tizen_seamless_pop_deferred_effect(WIDGET(other), VIEW(other), EINA_FALSE, cur->perspective_obj);