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
|
||||
if (virtualConsumerDestinationFilter == null) {
|
||||
Set <ActiveMQQueue> consumerDestinations = new HashSet<ActiveMQQueue>();
|
||||
for (DestinationInterceptor interceptor : destinationInterceptors) {
|
||||
if (interceptor instanceof VirtualDestinationInterceptor) {
|
||||
VirtualDestinationInterceptor virtualDestinationInterceptor = (VirtualDestinationInterceptor) interceptor;
|
||||
for (VirtualDestination virtualDestination: virtualDestinationInterceptor.getVirtualDestinations()) {
|
||||
if (virtualDestination instanceof VirtualTopic) {
|
||||
consumerDestinations.add(new ActiveMQQueue(((VirtualTopic) virtualDestination).getPrefix() + DestinationFilter.ANY_DESCENDENT));
|
||||
if (destinationInterceptors != null) {
|
||||
for (DestinationInterceptor interceptor : destinationInterceptors) {
|
||||
if (interceptor instanceof VirtualDestinationInterceptor) {
|
||||
VirtualDestinationInterceptor virtualDestinationInterceptor = (VirtualDestinationInterceptor) interceptor;
|
||||
for (VirtualDestination virtualDestination: virtualDestinationInterceptor.getVirtualDestinations()) {
|
||||
if (virtualDestination instanceof VirtualTopic) {
|
||||
consumerDestinations.add(new ActiveMQQueue(((VirtualTopic) virtualDestination).getPrefix() + DestinationFilter.ANY_DESCENDENT));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue