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,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);
}
} }
} }