AMQ-6901 - Add NPE check inside DestinationMap filter

(cherry picked from commit 703b7b151017fe117363e5598146e157bad78265)
This commit is contained in:
Christopher L. Shannon (cshannon) 2018-02-16 14:32:24 -05:00
parent 3c2d5a3015
commit 6e7f622456

View File

@ -231,6 +231,10 @@ public class DestinationMap {
@SuppressWarnings("rawtypes")
//Used to filter out any child/unmatching entries
private boolean isMatchOrParent(final ActiveMQDestination destination, final DestinationMapEntry entry) {
//If destination not set then do not filter out
if (entry.getDestination() == null) {
return true;
}
final DestinationFilter filter = DestinationFilter.parseFilter(entry.getDestination());
return destination.equals(entry.getDestination()) || filter.matches(destination);
}