GitHub user pgfox opened a pull request:

    https://github.com/apache/activemq-artemis/pull/1669

    ARTEMIS-1524 avoid null pointer due to race condition in listAddresses()

    The listAddresses() retrieves the list of addresses and then retrieves the 
detail of each one to build the Json representation.  If the deleteAddress()  
occurs between getting the list of addresses and retrieving the details - a 
NullPointerException is thrown.
    
    If address is deleted, ignore that address and continue through the list.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pgfox/activemq-artemis listAddress_race

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/1669.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1669
    
----
commit 8a1b00cb3e99039ca7d34249b3320c0c09d11423
Author: Pat Fox <pat.g....@gmail.com>
Date:   2017-11-24T13:12:00Z

    ARTEMIS-1524 avoid null pointer due to race condition in listAddresses(). 
If address is deleted, ignore that address and continue

----


---

Reply via email to