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 Jun 19, 2023
1 parent 2b72c17 commit 1d467b9
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 @@ -55,7 +55,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 1d467b9

Please sign in to comment.