Don't fail loading of services on empty config values

cusax-fix
Ingo Bauersachs 13 years ago
parent 77428c1363
commit d8b4ee7f0d

@ -110,7 +110,8 @@ public void start(BundleContext bundleContext) throws Exception
<ThunderbirdContactSourceService, ServiceRegistration>();
for (String cfg : configs)
{
if (cfg.endsWith(config.getString(cfg)))
String value = config.getString(cfg);
if (value != null && cfg.endsWith(value))
{
add(cfg);
}

Loading…
Cancel
Save