diff options
author | gjoranv <gv@oath.com> | 2017-10-30 16:52:18 +0100 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2017-10-30 16:53:41 +0100 |
commit | 1f66eb40313c1b0d240fc501868b503069a39804 (patch) | |
tree | ea007c7df8e6bb2a9c630c56f66b21d0d75ffb36 /container-di | |
parent | ed5f7e9d6db0b5a88f7eb8c8a95429b502bb97f8 (diff) |
Throw exception if null componentsConfig.
Diffstat (limited to 'container-di')
-rw-r--r-- | container-di/src/main/scala/com/yahoo/container/di/Container.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/container-di/src/main/scala/com/yahoo/container/di/Container.scala b/container-di/src/main/scala/com/yahoo/container/di/Container.scala index c82625bae3b..c6812c52242 100644 --- a/container-di/src/main/scala/com/yahoo/container/di/Container.scala +++ b/container-di/src/main/scala/com/yahoo/container/di/Container.scala @@ -183,6 +183,9 @@ class Container( val graph = new ComponentGraph(generation) val componentsConfig = getConfig(componentsConfigKey, configsIncludingBootstrapConfigs) + if (componentsConfig == null) + throw new ConfigurationRuntimeException( + "The set of all configs does not include a valid 'components' config. Config set: " + configsIncludingBootstrapConfigs.keySet) addNodes(componentsConfig, graph) injectNodes(componentsConfig, graph) |