fix crash in case of nonsupporting notification. 17/79117/1 accepted/tizen_3.0.m2_mobile tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170105.025602 accepted/tizen/3.0/mobile/20161015.034011 accepted/tizen/mobile/20160717.034555 accepted/tizen/unified/20170309.074955 submit/tizen_3.0.m2/20170104.093755 submit/tizen_3.0_mobile/20161015.000005 submit/tizen_mobile/20160716.102148 submit/tizen_unified/20170308.100419 submit/tizen_unified/20170309.100418
authorjiseob.jang <jiseob.jang@samsung.com>
Fri, 8 Jul 2016 08:12:52 +0000 (17:12 +0900)
committerjiseob.jang <jiseob.jang@samsung.com>
Fri, 8 Jul 2016 08:12:52 +0000 (17:12 +0900)
Change-Id: I08596c59cc2febfc6efbf1897b817d6e338630af
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
src/myaccount_ug_common.c

index 331d54678864868896bb04c8cbf7836ba13a16bd..74a791040e95476ff6e7d1272e24f52163e0c8c7 100755 (executable)
@@ -261,7 +261,7 @@ void myaccount_common_handle_notification(const char* event_type)
        if (appdata->eMode == eMYACCOUNT_ACCOUNT_LIST) {\r
                if (count > 0) {\r
                        if (appdata->add_genlist) {\r
-                               if( strcmp(event_type, ACCOUNT_NOTI_NAME_SYNC_UPDATE)){ // not sync update -> insert, update, delete\r
+                               if( event_type == NULL || strcmp(event_type, ACCOUNT_NOTI_NAME_SYNC_UPDATE)){   // not sync update -> insert, update, delete\r
                                        MYACCOUNT_DBUG("#  recved noti-event(%s) -> elm_naviframe_item_pop / quit_cb should be called.", (event_type != NULL) ? event_type : "null");\r
                                        elm_naviframe_item_pop(appdata->navi_bar);\r
                                        appdata->add_genlist = NULL;\r