mirror of https://github.com/apache/activemq.git
[AMQ-8518] Avoid NPE if path is null (at startup)
(cherry picked from commit 0849ae0211
)
This commit is contained in:
parent
fb22fd8c06
commit
68bed90c99
|
@ -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