ACTIVEMQ6-14 - fix for removal of bindings
https://issues.apache.org/jira/browse/ACTIVEMQ6-14 the jms server manager code was throwing a npe because of this, this commit addresses that.
This commit is contained in:
parent
0818587597
commit
0123d40c43
|
@ -593,11 +593,14 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
|
||||||
|
|
||||||
ArrayList<String> bindingsToAdd = new ArrayList<String>();
|
ArrayList<String> bindingsToAdd = new ArrayList<String>();
|
||||||
|
|
||||||
for (String bindingsItem : bindings)
|
if (bindings != null)
|
||||||
{
|
{
|
||||||
if (bindToBindings(bindingsItem, destination))
|
for (String bindingsItem : bindings)
|
||||||
{
|
{
|
||||||
bindingsToAdd.add(bindingsItem);
|
if (bindToBindings(bindingsItem, destination))
|
||||||
|
{
|
||||||
|
bindingsToAdd.add(bindingsItem);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue