diff options
Diffstat (limited to 'standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneSubscriberFactory.java')
-rw-r--r-- | standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneSubscriberFactory.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneSubscriberFactory.java b/standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneSubscriberFactory.java index 6ea2671b05b..d65b41c11c7 100644 --- a/standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneSubscriberFactory.java +++ b/standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneSubscriberFactory.java @@ -52,9 +52,8 @@ public class StandaloneSubscriberFactory implements SubscriberFactory { Map<ConfigKey<ConfigInstance>, ConfigInstance> ret = new HashMap<>(); for (ConfigKey<ConfigInstance> key : configKeys) { ConfigInstance.Builder builder = root.getConfig(newBuilderInstance(key), key.getConfigId()); - if (builder == null) { + if (builder == null) throw new RuntimeException("Invalid config id " + key.getConfigId()); - } ret.put(key, newConfigInstance(builder)); } return ret; |