Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit c8fccb37 authored by Harald Martini's avatar Harald Martini
Browse files

fixed null reference error in XMLDeclarationMultistageInputReader

updated namespace of type attribute in GetAirdragElementV1
parent 2a0f5b46
No related branches found
No related tags found
No related merge requests found
......@@ -900,7 +900,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.Reader.Impl
if (fullCheck) {
//use Binary AND to execute all Statements and gather information about missing parameters.
return InputComplete(_consolidateBusAuxiliariesData, nameof(_consolidateBusAuxiliariesData))
& _consolidateBusAuxiliariesData.IsInputDataCompleteFullCheck(jobType);
& (_consolidateBusAuxiliariesData != null && _consolidateBusAuxiliariesData.IsInputDataCompleteFullCheck(jobType));
}
return InputComplete(_consolidateBusAuxiliariesData, nameof(_consolidateBusAuxiliariesData))
&& _consolidateBusAuxiliariesData.IsInputDataComplete(jobType);
......@@ -922,6 +922,9 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.Reader.Impl
protected override IList<string> GetInvalidEntriesTemplate(VectoSimulationJobType jobType)
{
if (_consolidateBusAuxiliariesData == null) {
return new List<string>();
}
return _invalidEntries.Concat(_consolidateBusAuxiliariesData.GetInvalidEntries(jobType)).ToList();
}
}
......
......@@ -393,9 +393,9 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
{
return new XElement(v28 + XMLNames.Component_AirDrag,
new XElement(v20 + XMLNames.Report_DataWrap,
new XAttribute(xsi + XMLNames.Component_Type_Attr, XMLNames.AirDrag_Data_Type_Attr),
//new XAttribute("xmlns", v10.NamespaceName),
new XAttribute(XNamespace.Xmlns + "v1.0", v10.NamespaceName),
new XAttribute(xsi + XMLNames.Component_Type_Attr, "v1.0:" + XMLNames.AirDrag_Data_Type_Attr),
//new XAttribute("xmlns", v10.NamespaceName),
dataNode.Attributes != null && dataNode.Attributes[XMLNames.Component_ID_Attr] != null ?
new XAttribute(XMLNames.Component_ID_Attr, dataNode.Attributes[XMLNames.Component_ID_Attr].InnerText) : null,
GetElements(dataNode.ChildNodes)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment