This is an automated email from the ASF dual-hosted git repository.

wenjun pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 934d6d21eb [Bug] [Service] Use MapUtils to judge globalParamsMap is 
empty. (#12384)
934d6d21eb is described below

commit 934d6d21eb8a8e903b3632d0e2b873ea87d150ff
Author: houshitao <[email protected]>
AuthorDate: Mon Oct 17 14:52:45 2022 +0800

    [Bug] [Service] Use MapUtils to judge globalParamsMap is empty. (#12384)
---
 .../org/apache/dolphinscheduler/service/expand/CuringGlobalParams.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/expand/CuringGlobalParams.java
 
b/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/expand/CuringGlobalParams.java
index 859fcf280a..13c16cec0f 100644
--- 
a/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/expand/CuringGlobalParams.java
+++ 
b/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);
         }
 

Reply via email to