std::string* error) {
const Manifest* manifest = application->GetManifest();
std::shared_ptr<AppControlInfoList> aplist(new AppControlInfoList());
- utils::Value* value;
- manifest->Get(keys::kTizenApplicationAppControlsKey, &value);
+ utils::Value* value = nullptr;
+ if (!manifest->Get(keys::kTizenApplicationAppControlsKey, &value))
+ return true;
if (value->GetType() == utils::Value::TYPE_LIST) {
// multiple entries
static_cast<const AppControlInfoList*>(
application->GetManifestData(keys::kTizenApplicationAppControlsKey));
+ if (!app_controls)
+ return true;
+
for (const auto& item : app_controls->controls) {
if (item.src().empty()) {
*error = "The src child element of app-control element is obligatory";
std::string* error) {
const Manifest* manifest = application->GetManifest();
std::shared_ptr<CategoryInfoList> aplist(new CategoryInfoList());
- utils::Value* value;
- manifest->Get(keys::kTizenCategoryKey, &value);
+ utils::Value* value = nullptr;
+ if (!manifest->Get(keys::kTizenCategoryKey, &value))
+ return true;
if (value->GetType() == utils::Value::TYPE_LIST) {
// multiple entries
static_cast<const CategoryInfoList*>(
application->GetManifestData(keys::kTizenCategoryKey));
+ if (!categories_list)
+ return true;
+
for (const auto& item : categories_list->categories) {
if (item.empty()) {
*error = kErrMsgCategoryName;
const Manifest* manifest = application->GetManifest();
assert(manifest);
- utils::Value* value;
- manifest->Get(keys::kTizenImeKey, &value);
+ utils::Value* value = nullptr;
+ if (!manifest->Get(keys::kTizenImeKey, &value) )
+ return true;
bool result = true;
static_cast<const ImeInfo*>(
application->GetManifestData(keys::kTizenImeKey));
+ if (!ime_info)
+ return true;
+
if (ime_info->uuid().empty()) {
*error = kErrMsgValidatingUuidEmpty;
return false;
utils::Value* metadata_value = NULL;
if (!manifest->Get(keys::kTizenMetaDataKey, &metadata_value)) {
LOG(INFO) << "Failed to get value of tizen metaData";
+ return true;
}
MetaDataPair metadata_item;