Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyitao committed Jul 27, 2020
1 parent 4730583 commit 9461853
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/daxiang/service/DataMigrationService.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ public void actionStepParamValuesToArgs() {
List<Step> steps = action.getSteps();
for (Step step : steps) {
List<ParamValue> paramValues = step.getParamValues();
if (CollectionUtils.isEmpty(paramValues)) {
if (paramValues == null) { // 已迁移过
return;
}
if (paramValues.isEmpty()) {
step.setArgs(new ArrayList<>());
} else {
List<String> values = paramValues.stream().map(ParamValue::getParamValue).collect(Collectors.toList());
Expand Down

0 comments on commit 9461853

Please sign in to comment.