New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE testing regular expression without matcher group #1044

Closed
edmundoa opened this Issue Jan 19, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@edmundoa
Member

edmundoa commented Jan 19, 2015

Testing a regular expression with no matcher group returns an error, even if the regular expression is valid.
regex_test

This is the log of that request in the web interface:

play.api.Application$$anon$1: Execution exception[[NullPointerException: null]]
    at play.api.Application$class.handleError(Application.scala:296) ~[play_2.10-2.3.6.jar:2.3.6]
    at play.api.DefaultApplication.handleError(Application.scala:402) [play_2.10-2.3.6.jar:2.3.6]
    at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$4.apply(PlayDefaultUpstreamHandler.scala:320) [play_2.10-2.3.6.jar:2.3.6]
    at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$4.apply(PlayDefaultUpstreamHandler.scala:320) [play_2.10-2.3.6.jar:2.3.6]
    at scala.Option.map(Option.scala:145) [scala-library.jar:na]
Caused by: java.lang.NullPointerException: null
    at lib.extractors.testers.RegexTest.test(RegexTest.java:50) ~[classes/:na]
    at controllers.api.ToolsApiController.regexTest(ToolsApiController.java:61) ~[classes/:na]
    at Routes$$anonfun$routes$1$$anonfun$applyOrElse$154$$anonfun$apply$824.apply(routes_routing.scala:2557) ~[classes/:na]
    at Routes$$anonfun$routes$1$$anonfun$applyOrElse$154$$anonfun$apply$824.apply(routes_routing.scala:2557) ~[classes/:na]
    at play.core.Router$HandlerInvokerFactory$$anon$4.resultCall(Router.scala:264) ~[play_2.10-2.3.6.jar:2.3.6]

@edmundoa edmundoa self-assigned this Jan 19, 2015

@edmundoa edmundoa added this to the 1.0.0 milestone Jan 19, 2015

@edmundoa edmundoa closed this in 115164d Jan 19, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment