From 8c8064ecce72267f749636efb7b0465d33148623 Mon Sep 17 00:00:00 2001 From: Anne Tilloy Date: Wed, 1 Jun 2022 11:00:01 +0200 Subject: [PATCH] Fix cut. Signed-off-by: Anne Tilloy --- src/main/java/com/powsybl/openloadflow/network/LfNetwork.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/powsybl/openloadflow/network/LfNetwork.java b/src/main/java/com/powsybl/openloadflow/network/LfNetwork.java index 94c6a4e417..67c0c695bf 100644 --- a/src/main/java/com/powsybl/openloadflow/network/LfNetwork.java +++ b/src/main/java/com/powsybl/openloadflow/network/LfNetwork.java @@ -601,7 +601,7 @@ public void fixTransformerVoltageControls() { if (!branch.isDisabled() && branch.isVoltageController() && branch.isVoltageControlEnabled()) { controllerBranches.add(branch); } - if (branch.isDisabled()) { + if (branch.isDisabled() && branch.getBus1() != null && branch.getBus2() != null) { // apply contingency (in case we are inside a security analysis) getConnectivity().cut(branch); }