projects
/
platform
/
core
/
appfw
/
wgt-backend.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a4847b
)
Skip reading icon in case there is no icon file actually
15/138415/2
author
jongmyeongko
<jongmyeong.ko@samsung.com>
Wed, 12 Jul 2017 06:42:29 +0000
(15:42 +0900)
committer
jongmyeong ko
<jongmyeong.ko@samsung.com>
Wed, 12 Jul 2017 06:43:58 +0000
(06:43 +0000)
Change-Id: I653a8ac1d6fa1d496060adfd68ad8b1757814144
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
src/lib/wgt_archive_info.cc
patch
|
blob
|
history
diff --git
a/src/lib/wgt_archive_info.cc
b/src/lib/wgt_archive_info.cc
index
205ba5f
..
095b60d
100644
(file)
--- a/
src/lib/wgt_archive_info.cc
+++ b/
src/lib/wgt_archive_info.cc
@@
-140,6
+140,11
@@
bool ReadIcon(const bf::path& icon, const bf::path& tmp_dir,
LOG(INFO) << "Icon file path: " << icon_path;
+ if (!bf::exists(icon_path)) {
+ LOG(WARNING) << "Icon file doesn't actually exist, skip reading icon";
+ return true;
+ }
+
std::ifstream ifs(icon_path.c_str(),
std::ifstream::in | std::ifstream::binary);
ifs.seekg(0, ifs.end);