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] [Created] (PROTON-2188) NPE thrown upon attempt to encode map entry with unknown key/value type
Date Thu, 02 Apr 2020 11:41:00 GMT
Robbie Gemmell created PROTON-2188:
--------------------------------------

             Summary: 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
             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