You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/06/24 15:36:25 UTC

[jira] [Commented] (QPID-5792) Decoding destinations with no attributes can lead to NullPointerException

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

ASF subversion and git services commented on QPID-5792:
-------------------------------------------------------

Commit 1605078 from [~gemmellr] in branch 'qpid/trunk'
[ https://svn.apache.org/r1605078 ]

QPID-5792: add null check to avoid NPE during Destination decoding

Applied patch from Dejan Bosanac

> Decoding destinations with no attributes can lead to NullPointerException
> -------------------------------------------------------------------------
>
>                 Key: QPID-5792
>                 URL: https://issues.apache.org/jira/browse/QPID-5792
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.26
>            Reporter: Dejan Bosanac
>             Fix For: 0.29
>
>         Attachments: patch.txt
>
>
> Decoding destinations with no attributes can lead to NullPointerException
> {code}Exception in thread "Thread-5" java.lang.NullPointerException
> 	at org.apache.qpid.amqp_1_0.jms.impl.MessageImpl.join(MessageImpl.java:1341)
> 	at org.apache.qpid.amqp_1_0.jms.impl.MessageImpl.setJMSDestination(MessageImpl.java:231)
> 	at org.apache.activemq.transport.amqp.JmsClientRequestResponseTest.onMessage(JmsClientRequestResponseTest.java:226)
> 	at org.apache.qpid.amqp_1_0.jms.impl.SessionImpl$Dispatcher.run(SessionImpl.java:910)
> 	at java.lang.Thread.run(Thread.java:722){code}
> This can happen when using replyTo destination from the broker that didn't set attributes. We need to add extra check if attributes exists.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org