aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/src/main/java/org/onap/policy/api/main/startstop/ApiDatabaseInitializer.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/main/java/org/onap/policy/api/main/startstop/ApiDatabaseInitializer.java b/main/src/main/java/org/onap/policy/api/main/startstop/ApiDatabaseInitializer.java
index cbd89cb8..4cbfd06d 100644
--- a/main/src/main/java/org/onap/policy/api/main/startstop/ApiDatabaseInitializer.java
+++ b/main/src/main/java/org/onap/policy/api/main/startstop/ApiDatabaseInitializer.java
@@ -114,7 +114,8 @@ public class ApiDatabaseInitializer {
for (String entity : entities) {
String entityAsStringYaml = ResourceUtils.getResourceAsString(entity);
if (entityAsStringYaml == null) {
- throw new PolicyApiException("Preloading entity cannot be found: " + entity);
+ LOGGER.warn("Preloading entity cannot be found: " + entity);
+ continue;
}
ToscaServiceTemplate singleEntity =
@@ -150,4 +151,4 @@ public class ApiDatabaseInitializer {
protected interface FunctionWithEx<T, R> {
public R apply(T value) throws PfModelException;
}
-} \ No newline at end of file
+}