From 6e30d1317cc5db42f79e64b44f689e80b30aadde Mon Sep 17 00:00:00 2001 From: Etienne LESOT Date: Fri, 11 Oct 2024 16:45:36 +0200 Subject: [PATCH] fix Signed-off-by: Etienne LESOT --- .../modifications/TwoWindingsTransformerModification.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gridsuite/modification/server/modifications/TwoWindingsTransformerModification.java b/src/main/java/org/gridsuite/modification/server/modifications/TwoWindingsTransformerModification.java index 15118ccf5..780a335db 100644 --- a/src/main/java/org/gridsuite/modification/server/modifications/TwoWindingsTransformerModification.java +++ b/src/main/java/org/gridsuite/modification/server/modifications/TwoWindingsTransformerModification.java @@ -209,9 +209,9 @@ private void processPhaseTapChanger(Network network, } List 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(); }