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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Pawan Verma-2
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 <[hidden email]>
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;