[
https://issues.apache.org/jira/browse/ARTEMIS-1610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16328679#comment-16328679
]
ASF GitHub Bot commented on ARTEMIS-1610:
-----------------------------------------
Github user cshannon commented on the issue:
https://github.com/apache/activemq-artemis/pull/1780
PR has been updated. Also inside WildcardAddressManager should we be
unlinking the addresses both was inside of removeAndUpdateAddressMap? The
current line has this:
https://github.com/cshannon/activemq-artemis/blob/48eb50a8ce69584deb50db64f0c45c5e42b0c09a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/WildcardAddressManager.java#L203
Should we also add `address.removeLinkedAddress(address1); ` on the next
line?
> NPE inside WildcardAddressManager on consumer creation
> ------------------------------------------------------
>
> Key: ARTEMIS-1610
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1610
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Broker
> Affects Versions: 2.4.0
> Reporter: Christopher L. Shannon
> Assignee: Christopher L. Shannon
> Priority: Major
> Fix For: 2.5.0
>
> Attachments: NPEWildcardAddressManagerTest.java
>
>
> While doing some testing with Artemis I started seeing a NPE when creating a
> consumer in certain cases. The issue occurs when there are wildcard addresses
> being registered/un-registered inside of the WildcardAddressManager before
> the creation and those addresses are linked with other addresses. This is
> causing the NPE inside the addBinding() method because it's trying to
> reference bindings that do not exist and there is no null check. I'm not sure
> the exact fix for this yet but I have a basic Junit test the shows the issue.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)