qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robbie Gemmell (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (PROTON-2188) NPE thrown upon attempt to encode map entry with unknown key/value type
Date Thu, 02 Apr 2020 12:00:00 GMT

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

Robbie Gemmell resolved PROTON-2188.
------------------------------------
    Resolution: Fixed

> NPE thrown upon attempt to encode map entry with unknown key/value type
> -----------------------------------------------------------------------
>
>                 Key: PROTON-2188
>                 URL: https://issues.apache.org/jira/browse/PROTON-2188
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-j
>    Affects Versions: proton-j-0.33.3
>            Reporter: Robbie Gemmell
>            Assignee: Robbie Gemmell
>            Priority: Trivial
>             Fix For: proton-j-0.33.4
>
>
> When trying to encode an object directly that the codec has no known encoding for, or
similarly for a list entry of unknown type, an IllegalArgumentException is thrown to indicate
the issue that no encoding is known. If however the unknown element type is the key or value
of a map entry being encoded then a NullPointerException occurs instead, making the issue
unclear. A similar IllegalArgumentException should instead be thrown in these cases also to
make the application issue clearer.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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


Mime
View raw message