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


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

commit 079e909f213d956171fc32e0d88a62b8b9069eb2
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;