This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/main by this push:
new 0849ae021 [AMQ-8518] Avoid NPE if path is null (at startup)
new d09fe4569 Merge pull request #829 from jbonofre/AMQ-8518
0849ae021 is described below
commit 0849ae02116b9da3251b026546ce2fb049589dbe
Author: Jean-Baptiste Onofré <[email protected]>
AuthorDate: Mon Apr 18 16:52:46 2022 +0200
[AMQ-8518] Avoid NPE if path is null (at startup)
---
.../src/main/java/org/apache/activemq/filter/DestinationMapNode.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/activemq-client/src/main/java/org/apache/activemq/filter/DestinationMapNode.java
b/activemq-client/src/main/java/org/apache/activemq/filter/DestinationMapNode.java
index 8a9ea8567..e7628a849 100644
---
a/activemq-client/src/main/java/org/apache/activemq/filter/DestinationMapNode.java
+++
b/activemq-client/src/main/java/org/apache/activemq/filter/DestinationMapNode.java
@@ -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;