Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne LESOT <[email protected]>
  • Loading branch information
EtienneLt committed Oct 11, 2024
1 parent 706168e commit 6e30d13
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ private void processPhaseTapChanger(Network network,
}

List<ReportNode> regulationReports = new ArrayList<>();
PhaseTapChanger.RegulationMode regulationMode = isModification &&
phaseTapChangerInfos.getRegulationMode() != null ? phaseTapChangerInfos.getRegulationMode().getValue() : null;
if (phaseTapChangerInfos.getRegulationMode() != null && phaseTapChangerInfos.getRegulationMode().getValue() != null) {
PhaseTapChanger.RegulationMode regulationMode = isModification ? phaseTapChanger.getRegulationMode() : null;
if (phaseTapChangerInfos.getRegulationMode() != null
&& phaseTapChangerInfos.getRegulationMode().getValue() != null) {
regulationMode = phaseTapChangerInfos.getRegulationMode().getValue();
}

Expand Down

0 comments on commit 6e30d13

Please sign in to comment.