Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-2744

FieldTable throws a NullPointerException in setObjectProperty rather than expected AMQPInvalidClassException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • M2, M2.1, M3, M4, 0.5, 0.6
    • 0.7
    • Java Common
    • None

    Description

      When a null object is passed to setObjectProperty in the FieldTable we should throw an AMQPInvalidClassException stating we need a primitive value.

      However we do object.getClass() to show what we were given.. if object is null then we get a NPE.

      This needs to be fixed so it doesn't NPE.

      Attachments

        Activity

          People

            ritchiem Martin Ritchie
            ritchiem Martin Ritchie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: