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

Robbie Gemmell closed QPIDJMS-13.
---------------------------------

    Resolution: Invalid

Hi Nathan,

Thanks for raising this, unfortunately this isn't the correct JIRA project for 
that client, but a distinct new AMQP 1.0 JMS 2.0 client that is still under 
initial development.

Can you please raise the issue at:
https://issues.apache.org/jira/browse/QPID

> NullPointerException if message prop's userId is null
> -----------------------------------------------------
>
>                 Key: QPIDJMS-13
>                 URL: https://issues.apache.org/jira/browse/QPIDJMS-13
>             Project: Qpid JMS
>          Issue Type: Bug
>            Reporter: Nathan Jensen
>
> Some JMS applications will try to retrieve the userID from a message, and the 
> qpid client may throw a NullPointerException if that is not set on the 
> message.  Ideally it should just return null if there is no userId set.  
> Specifically in  org.apache.qpid.client.message.AMQMessageDelegate_0_10.java, 
> the method getStringProperty(String) checks if the propertyName equals 
> JMSXUserID and if so returns a new String(_messageProps.getUserId()).  
> Therefore if there is no userId set it can attempt String(null) which causes 
> a NullPointerException.
> Also note that other properties in this method are specifically checking for 
> null to avoid an exception like this.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to