You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robbie Gemmell (Jira)" <ji...@apache.org> on 2020/04/02 11:41:00 UTC
[jira] [Created] (PROTON-2188) NPE thrown upon attempt to encode
map entry with unknown key/value type
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