diff --git a/src/main/java/neatlogic/module/autoexec/service/AutoexecServiceServiceImpl.java b/src/main/java/neatlogic/module/autoexec/service/AutoexecServiceServiceImpl.java index 1225c30d433fdaa8462de1f580c2c66b860e56f1..837f4850fdec2a7d904d9a0aa9cab913b3b3333b 100644 --- a/src/main/java/neatlogic/module/autoexec/service/AutoexecServiceServiceImpl.java +++ b/src/main/java/neatlogic/module/autoexec/service/AutoexecServiceServiceImpl.java @@ -147,7 +147,7 @@ public class AutoexecServiceServiceImpl implements AutoexecServiceService { } if (versionVo.getNeedRoundCount()) { ParamMappingVo parallelPolicy = serviceConfigVo.getParallelPolicy(); - if (Objects.equals(parallelPolicy.getValue(), AutoexecParallelPolicy.ROUND_COUNT.getValue())) { + if (parallelPolicy != null && Objects.equals(parallelPolicy.getValue(), AutoexecParallelPolicy.ROUND_COUNT.getValue())) { ParamMappingVo roundCountMappingVo = serviceConfigVo.getRoundCount(); if (roundCountMappingVo == null) { if (throwException) { @@ -885,7 +885,7 @@ public class AutoexecServiceServiceImpl implements AutoexecServiceService { AutoexecCombopExecuteConfigVo executeConfig = versionConfig.getExecuteConfig(); if (executeConfig != null) { if (autoexecCombopVersionVo.getNeedRoundCount()) { - if (executeConfig.getRoundCount() != null) { + if (executeConfig.getRoundCount() != null && config.getRoundCount() == null) { ParamMappingVo roundCount = new ParamMappingVo(); roundCount.setMappingMode(ParamMappingMode.CONSTANT.getValue()); roundCount.setValue(executeConfig.getRoundCount());