diff --git a/src/iidm/extensions/SlackTerminalXmlSerializer.cpp b/src/iidm/extensions/SlackTerminalXmlSerializer.cpp index 35c5a49e..80727748 100644 --- a/src/iidm/extensions/SlackTerminalXmlSerializer.cpp +++ b/src/iidm/extensions/SlackTerminalXmlSerializer.cpp @@ -55,7 +55,7 @@ Extension& SlackTerminalXmlSerializer::read(Extendable& extendable, converter::x } auto& voltageLevel = dynamic_cast(extendable); const std::string& id = context.getAnonymizer().deanonymizeString(context.getReader().getAttributeValue(converter::ID)); - const std::string& side = context.getReader().getAttributeValue(converter::SIDE); + const std::string& side = context.getReader().getOptionalAttributeValue(converter::SIDE, ""); Terminal& terminal = converter::xml::TerminalRefXml::readTerminalRef(voltageLevel.getNetwork(), id, side); extendable.newExtension().withTerminal(terminal).add(); return extendable.getExtension();