mirror of
https://github.com/apache/activemq.git
synced 2025-02-17 15:35:36 +00:00
[AMQ-8518] Avoid NPE if path is null (at startup)
(cherry picked from commit 0849ae02116b9da3251b026546ce2fb049589dbe)
This commit is contained in:
parent
fb22fd8c06
commit
68bed90c99
@ -235,7 +235,7 @@ public class DestinationMapNode implements DestinationNode {
|
|||||||
int size = paths.length;
|
int size = paths.length;
|
||||||
for (int i = startIndex; i < size && node != null; i++) {
|
for (int i = startIndex; i < size && node != null; i++) {
|
||||||
String path = paths[i];
|
String path = paths[i];
|
||||||
if (deep && path.equals(ANY_DESCENDENT)) {
|
if (deep && path != null && path.equals(ANY_DESCENDENT)) {
|
||||||
answer.addAll(node.getDesendentValues());
|
answer.addAll(node.getDesendentValues());
|
||||||
couldMatchAny = false;
|
couldMatchAny = false;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user