Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2188

NPE thrown upon attempt to encode map entry with unknown key/value type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: proton-j-0.33.3
    • Fix Version/s: proton-j-0.33.4
    • Component/s: proton-j
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              robbie Robbie Gemmell
              Reporter:
              robbie Robbie Gemmell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: