@@ -107,9 +107,9 @@ private void checkDroop(HvdcLine hvdcLine) {
107107 }
108108
109109 //--- the extension doesn't exist yet ---//
110- boolean isPresentAngleDroopActivePowerControl = modificationInfos .getAngleDroopActivePowerControl () != null ;
111- boolean isPresentDroop = modificationInfos .getDroop () != null ;
112- boolean isPresentP0 = modificationInfos .getP0 () != null ;
110+ boolean isPresentAngleDroopActivePowerControl = modificationInfos .getAngleDroopActivePowerControl () != null && modificationInfos . getAngleDroopActivePowerControl (). getValue () != null ;
111+ boolean isPresentDroop = modificationInfos .getDroop () != null && modificationInfos . getDroop (). getValue () != null ;
112+ boolean isPresentP0 = modificationInfos .getP0 () != null && modificationInfos . getP0 (). getValue () != null ;
113113 // all fields are provided => OK extension will be created
114114 if (isPresentAngleDroopActivePowerControl && isPresentDroop && isPresentP0 ) {
115115 return ;
@@ -280,7 +280,10 @@ private void modifyExistingHvdcAngleDroopActivePowerControl(HvdcAngleDroopActive
280280
281281 private boolean shouldCreateDroopActivePowerControlExtension () {
282282 return shouldCreateDroopActivePowerControlExtension (
283- modificationInfos .getAngleDroopActivePowerControl () != null , modificationInfos .getDroop () != null , modificationInfos .getP0 () != null );
283+ modificationInfos .getAngleDroopActivePowerControl () != null &&
284+ modificationInfos .getAngleDroopActivePowerControl ().getValue () != null ,
285+ modificationInfos .getDroop () != null && modificationInfos .getDroop ().getValue () != null ,
286+ modificationInfos .getP0 () != null && modificationInfos .getP0 ().getValue () != null );
284287 }
285288
286289 private List <ReportNode > hvdcAngleDroopActivePowerControlAdder (HvdcLine hvdcLine ) {
0 commit comments