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:
Andy Taylor 2015-01-16 11:12:47 +00:00
parent 0818587597
commit 0123d40c43
1 changed files with 6 additions and 3 deletions

View File

@ -593,6 +593,8 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
ArrayList<String> bindingsToAdd = new ArrayList<String>();
if (bindings != null)
{
for (String bindingsItem : bindings)
{
if (bindToBindings(bindingsItem, destination))
@ -600,6 +602,7 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
bindingsToAdd.add(bindingsItem);
}
}
}
String[] usedBindings = bindingsToAdd.toArray(new String[bindingsToAdd.size()]);
addToBindings(topicBindings, topicName, usedBindings);