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

[jira] [Created] (ARTEMIS-1713) Calling getClientId() on an OpenWireConnection can cause a NPE

Christopher L. Shannon created ARTEMIS-1713:
-----------------------------------------------

             Summary: Calling getClientId() on an OpenWireConnection can cause a NPE
                 Key: ARTEMIS-1713
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1713
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: OpenWire
    Affects Versions: 2.4.0
            Reporter: Christopher L. Shannon
            Assignee: Christopher L. Shannon
             Fix For: 2.5.0


The getClientId() on RemotingConnection is public and it is possible to call it too early on an OpenWireConnection (such as in a plugin) before the context has been initialized with the clientId.  Instead of just returning null a NPE is thrown because of a null reference.



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