Skip to content

Commit

Permalink
fix(controller): Collector.toMap require non-null value (#3020)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenxinxing authored Nov 23, 2023
1 parent 5d8927d commit 1f2320e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ private String rewriteSpecEnvForRequest(
if (null == env) {
env = new ArrayList<>();
}
Map<String, String> envMap = env.stream().collect(Collectors.toMap(Env::getName, Env::getValue));
Map<String, String> envMap = env.stream()
.filter(e -> null != e.getValue())
.collect(Collectors.toMap(Env::getName, Env::getValue));
//if ENV vars in user's step spec conflicts with controller's, use controller's ENV
List<Env> controllerEnvs = envSupplier.get();
if (null != controllerEnvs) {
Expand Down

0 comments on commit 1f2320e

Please sign in to comment.