You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Jiri Daněk (JIRA)" <ji...@apache.org> on 2018/02/09 09:09:00 UTC

[jira] [Created] (ARTEMIS-1672) Coverity: Null pointer dereferences (REVERSE_INULL) in ActiveMQServerImpl.java

Jiri Daněk created ARTEMIS-1672:
-----------------------------------

             Summary: Coverity: Null pointer dereferences  (REVERSE_INULL) in ActiveMQServerImpl.java
                 Key: ARTEMIS-1672
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1672
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: Broker
    Affects Versions: 2.5.0
            Reporter: Jiri Daněk


{noformat}
________________________________________________________________________________________________________
*** CID 1465014:  Null pointer dereferences  (REVERSE_INULL)
/activemq-artemis/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java: 2795 in org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.createQueue(org.apache.activemq.artemis.core.server.impl.AddressInfo, org.apache.activemq.artemis.api.core.SimpleString, org.apache.activemq.artemis.api.core.SimpleString, org.apache.activemq.artemis.api.core.SimpleString, boolean, boolean, boolean, boolean, boolean, int, boolean, boolean, boolean, boolean)()
2789              } catch (Throwable ignored) {
2790                 logger.debug(ignored.getMessage(), ignored);
2791              }
2792              throw e;
2793           }
2794
>>>     CID 1465014:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "addrInfo" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
2795           if (addrInfo == null || !addrInfo.isInternal()) {
2796              managementService.registerQueue(queue, queue.getAddress(), storageManager);
2797           }
2798
2799           callBrokerPlugins(hasBrokerPlugins() ? plugin -> plugin.afterCreateQueue(queue) : null);
2800
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)