mirror of https://github.com/apache/activemq.git
AMQ-4045: Fixed NPE in BrokerService.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1383856 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
13222cd4a4
commit
5453b26eb8
|
@ -2515,12 +2515,14 @@ public class BrokerService implements Service {
|
||||||
// created at startup, so no sync needed
|
// created at startup, so no sync needed
|
||||||
if (virtualConsumerDestinationFilter == null) {
|
if (virtualConsumerDestinationFilter == null) {
|
||||||
Set <ActiveMQQueue> consumerDestinations = new HashSet<ActiveMQQueue>();
|
Set <ActiveMQQueue> consumerDestinations = new HashSet<ActiveMQQueue>();
|
||||||
for (DestinationInterceptor interceptor : destinationInterceptors) {
|
if (destinationInterceptors != null) {
|
||||||
if (interceptor instanceof VirtualDestinationInterceptor) {
|
for (DestinationInterceptor interceptor : destinationInterceptors) {
|
||||||
VirtualDestinationInterceptor virtualDestinationInterceptor = (VirtualDestinationInterceptor) interceptor;
|
if (interceptor instanceof VirtualDestinationInterceptor) {
|
||||||
for (VirtualDestination virtualDestination: virtualDestinationInterceptor.getVirtualDestinations()) {
|
VirtualDestinationInterceptor virtualDestinationInterceptor = (VirtualDestinationInterceptor) interceptor;
|
||||||
if (virtualDestination instanceof VirtualTopic) {
|
for (VirtualDestination virtualDestination: virtualDestinationInterceptor.getVirtualDestinations()) {
|
||||||
consumerDestinations.add(new ActiveMQQueue(((VirtualTopic) virtualDestination).getPrefix() + DestinationFilter.ANY_DESCENDENT));
|
if (virtualDestination instanceof VirtualTopic) {
|
||||||
|
consumerDestinations.add(new ActiveMQQueue(((VirtualTopic) virtualDestination).getPrefix() + DestinationFilter.ANY_DESCENDENT));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue