You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "James Bognar (Jira)" <ji...@apache.org> on 2020/04/24 00:49:00 UTC

[jira] [Created] (JUNEAU-220) Potential NPE when using @RestMethod(path="/xxx/*")

James Bognar created JUNEAU-220:
-----------------------------------

             Summary: Potential NPE when using @RestMethod(path="/xxx/*")
                 Key: JUNEAU-220
                 URL: https://issues.apache.org/jira/browse/JUNEAU-220
             Project: Juneau
          Issue Type: Bug
          Components: Code
    Affects Versions: 8.1.3
            Reporter: James Bognar


 

It appears you can get an NPE if you define a RestMethod path as "/xxx/*" and then try to access the resource via "/xxx".
{code:java}
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)
{code}
 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)