ConfigSpiOsgi should not try to unregister provider if not registered
@@ -361,11 +361,14 @@ public class ConfigSpiOsgi extends ConfigurationSpi implements ManagedService,
}
private void deregisterProvider(String providerName)
+ {
+ if (providerName != null)
{
Security.removeProvider(providerName);
log.log(LogService.LOG_INFO, "Removed provider " + providerName + " type "
+ JAAS_CONFIG_ALGO_NAME + " from Security providers list");
}
+ }
// ---------- ServiceTracker ----------------------------------------------
