diff --git a/DDCore/src/plugins/Compact2Objects.cpp b/DDCore/src/plugins/Compact2Objects.cpp index b7fb67e7ee346a76ce78f7d661c38a3e5e2cd9ad..498b215fb4455e47e130ee7e270a8fd07974d122 100644 --- a/DDCore/src/plugins/Compact2Objects.cpp +++ b/DDCore/src/plugins/Compact2Objects.cpp @@ -368,12 +368,12 @@ template <> void Converter<Constant>::operator()(xml_h e) const { */ template <> void Converter<Header>::operator()(xml_h e) const { xml_comp_t c(e); - Header h(e.attr<string>(_U(name)), e.attr<string>(_U(title))); - h.setUrl(e.attr<string>(_U(url))); - h.setAuthor(e.attr<string>(_U(author))); - h.setStatus(e.attr<string>(_U(status))); - h.setVersion(e.attr<string>(_U(version))); - h.setComment(e.child(_U(comment)).text()); + Header h(e.attr<string>(_U(name)), e.attr<string>(_U(title), "Undefined")); + h.setUrl(e.attr<string>(_U(url), "Undefined")); + h.setAuthor(e.attr<string>(_U(author), "Undefined")); + h.setStatus(e.attr<string>(_U(status), "development")); + h.setVersion(e.attr<string>(_U(version), "Undefined")); + h.setComment(e.hasChild(_U(comment)) ? e.child(_U(comment)).text() : "No Comment"); description.setHeader(h); }