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.gitThe 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 <
[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;