Add missing condition check code 79/230679/1
authorInHong Han <inhong1.han@samsung.com>
Mon, 13 Apr 2020 10:26:45 +0000 (19:26 +0900)
committerInHong Han <inhong1.han@samsung.com>
Mon, 13 Apr 2020 10:26:45 +0000 (19:26 +0900)
Change-Id: I736566ac02f1c70b8ae302a93228a236bb3005a9

server/stickerd_data_manager.c

index 251e9c0..d82b2cf 100644 (file)
@@ -767,7 +767,7 @@ int stickerd_insert_sticker_info_by_json(GVariant *parameters, GVariant **reply_
                 goto free_memory;
 
             sticker_info->thumbnail = _get_string_from_object(info_object, "thumbnail");
-            if (sticker_info->thumbnail) {
+            if (sticker_info->thumbnail && sticker_info->thumbnail[0] != '\0') {
                 if (_check_file_exist(sticker_info->app_id, sticker_info->thumbnail) == 0) {
                     sticker_info->thumbnail = _convert_sticker_uri(sticker_info->thumbnail, sticker_info->app_id);
                     if (!sticker_info->thumbnail)