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

NullPointer exception when starting JAX-RS application when StringParameterUnmarshallers are registered

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.3-RC1
    • None
    • None
    • None

    Description

      When a StringParameterUnmarshaller is registered for another class, the ResteasyProviderFactory will break with a null pointer exception if another type is requested.

      if (stringParameterUnmarshallers.size() == 0) return null;
      Class<? extends StringParameterUnmarshaller> un = stringParameterUnmarshallers.get(clazz);
      StringParameterUnmarshaller<T> provider = getProviderInstance(un);
      

      The map is not empty (size != 0), but there is no registration for clazz, thus un wil be null and on the last line a NullPointerException will be thrown.

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            m.winkels Maarten Winkels (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: