mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-23 02:44:10 +00:00
This closes #500
This commit is contained in:
commit
7fb603f78f
@ -1151,7 +1151,10 @@ public class ConfigurationImpl implements Configuration, Serializable {
|
||||
@Override
|
||||
public Map<String, Set<Role>> getSecurityRoles() {
|
||||
for (SecuritySettingPlugin securitySettingPlugin : securitySettingPlugins) {
|
||||
securitySettings.putAll(securitySettingPlugin.getSecurityRoles());
|
||||
Map<String, Set<Role>> securitySettings = securitySettingPlugin.getSecurityRoles();
|
||||
if (securitySettings != null) {
|
||||
securitySettings.putAll(securitySettings);
|
||||
}
|
||||
}
|
||||
return securitySettings;
|
||||
}
|
||||
|
@ -398,7 +398,9 @@ public class LegacyLDAPSecuritySettingPlugin implements SecuritySettingPlugin {
|
||||
}
|
||||
|
||||
try {
|
||||
context.close();
|
||||
if (context != null) {
|
||||
context.close();
|
||||
}
|
||||
}
|
||||
catch (NamingException e) {
|
||||
// ignore
|
||||
|
Loading…
x
Reference in New Issue
Block a user