Fix svace warnings 61/234261/1 submit/tizen/20200525.022829
authorKiseok Chang <kiso.chang@samsung.com>
Mon, 25 May 2020 02:05:42 +0000 (11:05 +0900)
committerKiseok Chang <kiso.chang@samsung.com>
Mon, 25 May 2020 02:06:36 +0000 (11:06 +0900)
- Add codes to check null

Change-Id: I45af4f6ca867ad247410c3471956d4c03fb9e200
Signed-off-by: Kiseok Chang <kiso.chang@samsung.com>
setting-profile/src/setting-profile-other-sounds-view.c

index 0ef38e1c0c8fdf4c3137e507445df3e5b0c019d8..af25aeb9960519c45e78659c2dbe459b62ab396c 100644 (file)
@@ -101,7 +101,7 @@ static int _view_create(void *cb)
                                                        it->label,
                                                        it->sublabel,
                                                        _checkbox_changed_cb);
-               id->userdata = it;
+               if (id) id->userdata = it;
        }
 
        SETTING_TRACE_END;