Merge pull request #829 from jbonofre/AMQ-8518

[AMQ-8518] Avoid NPE if path is null (at startup)
This commit is contained in:
Jean-Baptiste Onofré 2022-04-19 08:28:45 +02:00 committed by GitHub
commit d09fe45695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;