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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to