You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by pa...@apache.org on 2020/06/02 11:56:07 UTC

[ofbiz-framework] branch release18.12 updated: Fixed: startup-service does not work without runtime-data-id(OFBIZ-11668)

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

pawan pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release18.12 by this push:
     new 1d3c791  Fixed: startup-service does not work without runtime-data-id(OFBIZ-11668)
1d3c791 is described below

commit 1d3c7915c99d9a976217c58f94e715b75a1bd98c
Author: Pawan Verma <pa...@hotwaxsystems.com>
AuthorDate: Tue Jun 2 17:25:16 2020 +0530

    Fixed: startup-service does not work without runtime-data-id(OFBIZ-11668)
---
 .../java/org/apache/ofbiz/service/config/model/StartupService.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/framework/service/src/main/java/org/apache/ofbiz/service/config/model/StartupService.java b/framework/service/src/main/java/org/apache/ofbiz/service/config/model/StartupService.java
index eb05ebe..9d9980c 100644
--- a/framework/service/src/main/java/org/apache/ofbiz/service/config/model/StartupService.java
+++ b/framework/service/src/main/java/org/apache/ofbiz/service/config/model/StartupService.java
@@ -39,7 +39,8 @@ public final class StartupService {
             throw new ServiceConfigException("<startup-service> element name attribute is empty");
         }
         this.name = name;
-        this.runtimeDataId = startupServiceElement.getAttribute("runtime-data-id").intern();
+        String runtimeDataId = startupServiceElement.getAttribute("runtime-data-id").intern();
+        this.runtimeDataId = runtimeDataId.isEmpty() ? null : runtimeDataId;
         String runtimeDelay = startupServiceElement.getAttribute("runtime-delay").intern();
         if (runtimeDelay.isEmpty()) {
             this.runtimeDelay = 0;