if (std::is_same<T, serviceapplication_x>::value)
_writeServiceApplicationAttributes(
writer, reinterpret_cast<serviceapplication_x *>(app));
-
- label_x* label = nullptr;
- LISTHEAD(app->label, label);
- for (; label; label = label->next) {
- xmlTextWriterStartElement(writer, BAD_CAST "label");
- if (label->lang && strlen(label->lang)) {
- xmlTextWriterWriteAttribute(writer, BAD_CAST "xml:lang",
- BAD_CAST label->lang);
+ if(app->label){
+ label_x* label = nullptr;
+ LISTHEAD(app->label, label);
+ for (; label; label = label->next) {
+ xmlTextWriterStartElement(writer, BAD_CAST "label");
+ if (label->lang && strlen(label->lang)) {
+ xmlTextWriterWriteAttribute(writer, BAD_CAST "xml:lang",
+ BAD_CAST label->lang);
+ }
+ xmlTextWriterWriteString(writer, BAD_CAST label->name);
+ xmlTextWriterEndElement(writer);
}
- xmlTextWriterWriteString(writer, BAD_CAST label->name);
- xmlTextWriterEndElement(writer);
}
// the icon is renamed to <appid.png>
const std::string& version = wgt_info->version();
const std::string& required_api_version = info->required_version();
- context_->config_data.get().application_name.set(
- std::string(manifest->uiapplication->label->name));
+ if(manifest->uiapplication->label){
+ context_->config_data.get().application_name.set(
+ std::string(manifest->uiapplication->label->name));
+ }
+
context_->config_data.get().required_version.set(required_api_version);
context_->pkgid.set(std::string(manifest->package));