[ 
https://issues.apache.org/jira/browse/ARTEMIS-1753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16404990#comment-16404990
 ] 

ASF subversion and git services commented on ARTEMIS-1753:
----------------------------------------------------------

Commit 772156dd358ceb8186c9d31644b08d3b06875624 in activemq-artemis's branch 
refs/heads/master from [~martyntaylor]
[ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=772156d ]

ARTEMIS-1753 Prevent NPE on 1.x Client Topic Sub

When creting a durable topic subscription using the Artemis 1.x JMS
client library.  The client sends a QueueQuery to the server to see if
the durable subsciption queue already exists.  The broker then performs
some transformation of the queue addresses to suit the 1.x naming
scheme.  However, if the queue does not already exist the transform is
attempted on a null string causing NPE.  To fix we simply check that the
result return isExists=true.


> When using the 1.5.5 Artemis JMS Client, NPE is thrown when creating a 
> durable subscription
> -------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-1753
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1753
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Martyn Taylor
>            Priority: Major
>
> When creating a durable topic subcription using the Artemis 1.5.5 client a 
> QueueQuery is performed to see if the subscription already exists.  There is 
> some code that converts the queue names to the old 1.x scheme.  However, if 
> the subscription does not already exist, the conversion is attempted on a 
> null string, causing an NPE.



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

Reply via email to