[
https://issues.apache.org/jira/browse/QPID-2744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892215#action_12892215
]
Andrew Kennedy commented on QPID-2744:
--------------------------------------
Added fix for 0-10 code path. This means relaxing the error checks on the
thrown MessageFormatException in the test, possibly this should be fixed to
make both code paths do the same thing?
> FieldTable throws a NullPointerException in setObjectProperty rather than
> expected AMQPInvalidClassException
> ------------------------------------------------------------------------------------------------------------
>
> Key: QPID-2744
> URL: https://issues.apache.org/jira/browse/QPID-2744
> Project: Qpid
> Issue Type: Bug
> Components: Java Common
> Affects Versions: M2, M2.1, M3, M4, 0.5, 0.6
> Reporter: Martin Ritchie
> Assignee: Martin Ritchie
> Priority: Critical
> Fix For: 0.7
>
>
> When a null object is passed to setObjectProperty in the FieldTable we should
> throw an AMQPInvalidClassException stating we need a primitive value.
> However we do object.getClass() to show what we were given.. if object is
> null then we get a NPE.
> This needs to be fixed so it doesn't NPE.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]