From 5abaf37501e24523c62d757f75bad4741aa891f7 Mon Sep 17 00:00:00 2001 From: Tilen Faganel Date: Fri, 15 Dec 2017 17:16:00 +0100 Subject: [PATCH] Minor code cleanup for microprofile sources detection and addition --- core/src/main/java/com/kumuluz/ee/EeApplication.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/com/kumuluz/ee/EeApplication.java b/core/src/main/java/com/kumuluz/ee/EeApplication.java index 467f68c2..1e26bfbe 100644 --- a/core/src/main/java/com/kumuluz/ee/EeApplication.java +++ b/core/src/main/java/com/kumuluz/ee/EeApplication.java @@ -208,11 +208,13 @@ private void initialize() { extension.getExtension().init(server, eeConfig); List sources = extension.getExtension().getConfigurationSources(); + if (sources == null || sources.size() == 0) { sources = Collections.singletonList(extension.getExtension().getConfigurationSource()); } for (ConfigurationSource source : sources) { + if (source != null) { source.init(configImpl.getDispatcher()); configImpl.getConfigurationSources().add(source);