Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 52af9368 authored by Harald MARTINI's avatar Harald MARTINI
Browse files

check if IEPC node exists before creating the component in XMLComponentReader

parent 6f8e36ee
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.Reader.Impl
(_electricStorageSystemInputData = GetElectricEnergyStorageEntries());
public virtual IIEPCDeclarationInputData IEPCInputData => _iepcDeclarationInputData ??
(_iepcDeclarationInputData = CreateComponent( XMLNames.IEPC_Component, IEPCCreator));
(_iepcDeclarationInputData = GetComponentNode(XMLNames.IEPC_Component) != null ? CreateComponent( XMLNames.IEPC_Component, IEPCCreator) : null);
public virtual ITransmissionInputData CreateGear(XmlNode gearNode)
{
......
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