diff --git a/src/main/java/org/gridsuite/modification/server/modifications/StaticVarCompensatorCreation.java b/src/main/java/org/gridsuite/modification/server/modifications/StaticVarCompensatorCreation.java index aa8bd9221..3916fd326 100644 --- a/src/main/java/org/gridsuite/modification/server/modifications/StaticVarCompensatorCreation.java +++ b/src/main/java/org/gridsuite/modification/server/modifications/StaticVarCompensatorCreation.java @@ -89,9 +89,9 @@ private StaticVarCompensatorAdder createStaticVarCompensatorAdderInNodeBreaker(V staticVarCompensatorCreationInfos.getRegulatingTerminalType(), staticVarCompensatorCreationInfos.getRegulatingTerminalVlId()); double bMax = Objects.isNull(staticVarCompensatorCreationInfos.getMaxSusceptance()) && Objects.nonNull(staticVarCompensatorCreationInfos.getMaxQAtNominalV()) ? - (staticVarCompensatorCreationInfos.getMaxQAtNominalV()) / Math.pow(voltageLevel.getNominalV(), 2) : nanIfNull(staticVarCompensatorCreationInfos.getMaxSusceptance()); + (staticVarCompensatorCreationInfos.getMaxQAtNominalV()) / Math.pow(voltageLevel.getNominalV(), 2) : staticVarCompensatorCreationInfos.getMaxSusceptance(); double bMin = Objects.isNull(staticVarCompensatorCreationInfos.getMinSusceptance()) && Objects.nonNull(staticVarCompensatorCreationInfos.getMinQAtNominalV()) ? - (staticVarCompensatorCreationInfos.getMinQAtNominalV()) / Math.pow(voltageLevel.getNominalV(), 2) : nanIfNull(staticVarCompensatorCreationInfos.getMinSusceptance()); + (staticVarCompensatorCreationInfos.getMinQAtNominalV()) / Math.pow(voltageLevel.getNominalV(), 2) : staticVarCompensatorCreationInfos.getMinSusceptance(); StaticVarCompensatorAdder staticVarCompensatorAdder = voltageLevel.newStaticVarCompensator() .setId(staticVarCompensatorCreationInfos.getEquipmentId()) .setName(staticVarCompensatorCreationInfos.getEquipmentName())