[ 
https://issues.apache.org/jira/browse/QPID-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rajith Attapattu resolved QPID-3205.
------------------------------------

    Resolution: Fixed

Fixed and verified using testResumeEmptyReplayBuffer in ConnectionTest.java

> NPE when setting the redelivery flag is delivery props are missing (or if 
> there are no headers at all)
> ------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-3205
>                 URL: https://issues.apache.org/jira/browse/QPID-3205
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.10
>            Reporter: Rajith Attapattu
>            Assignee: Rajith Attapattu
>            Priority: Minor
>             Fix For: 0.11
>
>
> In the 0-10 code path, when resuming a session we replay all the unacked 
> messages in the replay buffer, after setting the redelivery flag.
> However when doing so we need to check if the delivery properties are present.
> The current implementation doesn't do so simply bcos the JMS client always 
> sets delivery properties when sending messages.
> However this results in a test failure (testResumeNonemptyReplayBuffer in 
> Connection.java) and this code can be used in the future for QMF etc.. and 
> they could potentially send messages without delivery props. So better to 
> handle the null cases to avoid any NPE's.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to