Skip to content

Commit

Permalink
Fix SlackTerminal optional side attribute.
Browse files Browse the repository at this point in the history
Signed-off-by: Gautier Bureau <[email protected]>
  • Loading branch information
gautierbureau committed Nov 15, 2023
1 parent b3c2790 commit 85245e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iidm/extensions/SlackTerminalXmlSerializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Extension& SlackTerminalXmlSerializer::read(Extendable& extendable, converter::x
}
auto& voltageLevel = dynamic_cast<VoltageLevel&>(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<SlackTerminalAdder>().withTerminal(terminal).add();
return extendable.getExtension<iidm::extensions::SlackTerminal>();
Expand Down

0 comments on commit 85245e4

Please sign in to comment.