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:
2d4ccf7
)
Skip reading icon in case there is no icon file actually
16/138416/1
author
jongmyeongko
<jongmyeong.ko@samsung.com>
Wed, 12 Jul 2017 06:42:29 +0000
(15:42 +0900)
committer
jongmyeongko
<jongmyeong.ko@samsung.com>
Wed, 12 Jul 2017 06:43:24 +0000
(15:43 +0900)
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);