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

Robbie Gemmell commented on PROTON-631:
---------------------------------------

Agreed on omitting it being fine. I decided to say that the annotation value 
has to be an AMQP string when covering JMSType in the JMS Mapping for AMQP, and 
as that precludes null also said clients have to omit the annotation in that 
case.

Patch applied in https://svn.apache.org/r1611095

> Potentiual null pointer exception is JMSType property is present but has a 
> null value.
> --------------------------------------------------------------------------------------
>
>                 Key: PROTON-631
>                 URL: https://issues.apache.org/jira/browse/PROTON-631
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-j
>    Affects Versions: 0.7
>            Reporter: Timothy Bish
>            Assignee: Robbie Gemmell
>             Fix For: 0.8
>
>         Attachments: patch.txt
>
>
> If a JMS mapping client sends a message with the "x-opt-jms-type" set but 
> with a value of null the InboundTransformer will throw a NullPointerException 
> since it tries to perform a toString() without first checking for null. 



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

Reply via email to