Skip to content
This repository has been archived by the owner. It is now read-only.

NPE testing regular expression without matcher group #1044

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

NPE testing regular expression without matcher group #1044

edmundoa opened this issue Jan 19, 2015 · 0 comments
Assignees
Milestone

Comments

@edmundoa
Copy link
Member

@edmundoa 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant