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

FieldTable throws a NullPointerException in setObjectProperty rather than expected AMQPInvalidClassException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: M2, M2.1, M3, M4, 0.5, 0.6
    • Fix Version/s: 0.7
    • Component/s: Java Common
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: