Uploaded image for project: 'Juneau'
  1. Juneau
  2. JUNEAU-220

Potential NPE when using @RestMethod(path="/xxx/*")

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.1.3
    • None
    • Code
    • None

    Description

       

      It appears you can get an NPE if you define a RestMethod path as "/xxx/*" and then try to access the resource via "/xxx".

      java.lang.NullPointerException
      	at org.apache.juneau.rest.util.UrlPathInfo.isTrailingSlash(UrlPathInfo.java:66)
      	at org.apache.juneau.rest.util.UrlPathPattern.match(UrlPathPattern.java:98)
      	at org.apache.juneau.rest.RestMethodContext.invoke(RestMethodContext.java:864)
      

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jamesbognar James Bognar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: