Fixed exception handling for sound player 09/100609/1
authorbhutani.92 <bhutani.92@samsung.com>
Mon, 28 Nov 2016 14:07:54 +0000 (19:37 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Mon, 28 Nov 2016 14:07:54 +0000 (19:37 +0530)
Change-Id: If4f1897123d57d6ae9fff5cb446ba1f7a0f86522
Signed-off-by: bhutani.92 <bhutani.92@samsung.com>
src/common/mp-common.c

index aeb2172..e1c1ae0 100755 (executable)
@@ -1652,6 +1652,9 @@ _mp_common_view_by_folder(const char *path, app_control_h app_control)
                                        mp_media_info_get_file_path(media, &file_path);
                                        i ++;
                                        DEBUG_TRACE("file path:%s", file_path);
+                                       if (!file_path) {
+                                               continue;
+                                       }
                                        folder_path = _get_folder_path(file_path);
                                        if (g_strcmp0(folder, folder_path)) {
                                                IF_FREE(folder_path);