Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-423

Null matrix parameters not accepted by the reasteasy client library

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.2.RC1
    • 2.0-beta-2
    • None
    • None

    Description

      When you send a null for a matrix param on a proxy-ed request via the
      client lib you get an NPE in the invoker.

      java.lang.NullPointerException
      at org.jboss.resteasy.client.ClientRequest.toString(ClientRequest.java:213)
      at org.jboss.resteasy.client.ClientRequest.matrixParameter(ClientRequest.java:268)
      at org.jboss.resteasy.client.core.marshallers.MatrixParamMarshaller.build(MatrixParamMarshaller.java:20)
      at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:98)
      at org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:59)
      at $Proxy23.getTickets(Unknown Source)

      The other marshallers handle null, but MatrixParamMarshaller does not.

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            AvneetKang Avneet Kang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: