Browse Source

[Bug] [Service] Use MapUtils to judge globalParamsMap is empty. (#12384)

3.2.0-release
houshitao 2 years ago committed by GitHub
parent
commit
934d6d21eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/expand/CuringGlobalParams.java

2
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/expand/CuringGlobalParams.java

@ -157,7 +157,7 @@ public class CuringGlobalParams implements CuringParamsService {
String timeZone = cmdParam.get(Constants.SCHEDULE_TIMEZONE);
Map<String, String> params = BusinessTimeUtils.getBusinessTime(commandType, scheduleTime, timeZone);
if (globalParamsMap != null) {
if (MapUtils.isNotEmpty(globalParamsMap)) {
params.putAll(globalParamsMap);
}

Loading…
Cancel
Save