activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Styk (JIRA)" <>
Subject [jira] [Created] (ARTEMIS-383) Possible method call on null object in QueueImpl class
Date Wed, 03 Feb 2016 09:51:39 GMT
Martin Styk created ARTEMIS-383:

             Summary: Possible method call on null object in QueueImpl class
                 Key: ARTEMIS-383
             Project: ActiveMQ Artemis
          Issue Type: Bug
            Reporter: Martin Styk
            Priority: Minor

Static code analysis tool discovered possible issue in class QueueImpl.

Following is affected part of code, starting on line number 2461 in method

public void postAcknowledge(final MessageReference ref) {code:java}



      boolean durableRef = message != null && message.isDurable() && queue.durable;
        \\line 2461


      try {

  \\line 2464


      catch (Exception e) {



Line 2461 contains check for null message. That implies that message might be null. In following
try block, line 2464 message contains method call on this message object.

This message was sent by Atlassian JIRA

View raw message