Change-Id: I71679e8de871fc9e80d89708fadd1183383f106f
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
manifestFile.reset(xml::Parser::parseFile(confPath + "/" + name + ".xml"));
xml::Node::NodeList authors = manifestFile->evaluate("/manifest/author");
- for (const xml::Node& author : authors) {
- if (author.getContent() == pkgId) {
- canRemove = true;
- break;
+ if (authors.size() == 0) {
+ canRemove = true;
+ } else {
+ for (const xml::Node& author : authors) {
+ if (author.getContent() == pkgId) {
+ canRemove = true;
+ break;
+ }
}
}