mirror of https://github.com/apache/activemq.git
[AMQ-8518] Avoid NPE if path is null (at startup)
This commit is contained in:
parent
f3c7f21d9c
commit
0849ae0211
|
@ -235,7 +235,7 @@ public class DestinationMapNode implements DestinationNode {
|
|||
int size = paths.length;
|
||||
for (int i = startIndex; i < size && node != null; i++) {
|
||||
String path = paths[i];
|
||||
if (deep && path.equals(ANY_DESCENDENT)) {
|
||||
if (deep && path != null && path.equals(ANY_DESCENDENT)) {
|
||||
answer.addAll(node.getDesendentValues());
|
||||
couldMatchAny = false;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue