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:55:33 UTC

[ofbiz-framework] branch trunk 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 trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


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

commit 8cac7f1fc5dfebd53184b2e3ba9f7588b79876c6
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;