ARTEMIS-467 Potential NPE
This commit is contained in:
parent
87b6984c36
commit
dbf0eced4b
|
@ -1239,7 +1239,7 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
|
||||||
checkInitialised();
|
checkInitialised();
|
||||||
List<String> registryBindings = connectionFactoryBindings.get(name);
|
List<String> registryBindings = connectionFactoryBindings.get(name);
|
||||||
|
|
||||||
if (registry != null) {
|
if (registry != null && registryBindings != null) {
|
||||||
for (String registryBinding : registryBindings) {
|
for (String registryBinding : registryBindings) {
|
||||||
registry.unbind(registryBinding);
|
registry.unbind(registryBinding);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue