You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by we...@apache.org on 2022/10/17 06:52:55 UTC

[dolphinscheduler] branch dev updated: [Bug] [Service] Use MapUtils to judge globalParamsMap is empty. (#12384)

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 <33...@users.noreply.github.com>
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);
         }