qpid-dev mailing list archives

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

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

ASF subversion and git services commented on PROTON-2188:

Commit 87ec94be64cb4f2850fad2de6ed97832308a66c2 in qpid-proton-j's branch refs/heads/master
from Robbie Gemmell
[ https://gitbox.apache.org/repos/asf?p=qpid-proton-j.git;h=87ec94b ]

PROTON-2188: throw IAE for map entries with unknown key/value type rather than just NPE

> 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

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

View raw message