qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Godfrey (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (QPID-7582) Auto unboxing null from Discharge#getFail() cause NPEs
Date Sat, 10 Dec 2016 18:09:58 GMT

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

Rob Godfrey reassigned QPID-7582:
---------------------------------

    Assignee: Rob Godfrey

> Auto unboxing null from Discharge#getFail() cause NPEs
> ------------------------------------------------------
>
>                 Key: QPID-7582
>                 URL: https://issues.apache.org/jira/browse/QPID-7582
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>            Reporter: Keith Wall
>            Assignee: Rob Godfrey
>             Fix For: qpid-java-7.0.0
>
>
> As highlighted by a NPE from TxnCoordinatorReceivingLink_1_0#discharge:151, the AMQP
1.0  protocol layer assumes that {{Discharge#fail}} is never returns null.  The code  un-autoboxes
the object back to its primitive.    The spec allows it to be, so a NPE will results in this
situation.
> We need to check all the implementation classes that back AMQP performative.  For any
field marked as optional which is of a type subject to auto-box, defensive code must be added.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message