Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1610

NPE inside WildcardAddressManager on consumer creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.5.0
    • Broker
    • None

    Description

      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.

      Attachments

        1. NPEWildcardAddressManagerTest.java
          2 kB
          Christopher L. Shannon

        Issue Links

          Activity

            People

              cshannon Christopher L. Shannon
              cshannon Christopher L. Shannon
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: