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

(cherry picked from commit 0849ae0211)
This commit is contained in:
Jean-Baptiste Onofré 2022-04-18 16:52:46 +02:00
parent fb22fd8c06
commit 68bed90c99
1 changed files with 1 additions and 1 deletions

View File

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