[AMQ-8518] Avoid NPE if path is null (at startup)

This commit is contained in:
Jean-Baptiste Onofré 2022-04-18 16:52:46 +02:00
parent f3c7f21d9c
commit 0849ae0211
1 changed files with 1 additions and 1 deletions

View File

@ -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;