diff --git a/src/main/java/org/gridsuite/modification/server/modifications/ModificationUtils.java b/src/main/java/org/gridsuite/modification/server/modifications/ModificationUtils.java index b48b82412..02a6b04b5 100644 --- a/src/main/java/org/gridsuite/modification/server/modifications/ModificationUtils.java +++ b/src/main/java/org/gridsuite/modification/server/modifications/ModificationUtils.java @@ -684,8 +684,9 @@ private void createNewConnectivityPosition(ConnectablePositionAdder adder, reports.add(connectionPositionReport); } - // Finalize by adding the feeder - adder.add(); + if (connectionNameReport != null || connectionDirectionReport != null || connectionPositionReport != null) { + adder.add(); + } } public void modifyInjectionConnection(InjectionModificationInfos modificationInfos, Injection injection, List subReportNode) {