{"action":"created","issue":{"url":"https://api.github.com/repos/playframework/playframework/issues/4531","labels_url":"https://api.github.com/repos/playframework/playframework/issues/4531/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework/issues/4531/comments","events_url":"https://api.github.com/repos/playframework/playframework/issues/4531/events","html_url":"https://github.com/playframework/playframework/issues/4531","id":79310822,"number":4531,"title":"Assets controller blows up on request to /assets/stylesheets","user":{"login":"pkaeding","id":13951,"avatar_url":"https://avatars.githubusercontent.com/u/13951?v=3","gravatar_id":"","url":"https://api.github.com/users/pkaeding","html_url":"https://github.com/pkaeding","followers_url":"https://api.github.com/users/pkaeding/followers","following_url":"https://api.github.com/users/pkaeding/following{/other_user}","gists_url":"https://api.github.com/users/pkaeding/gists{/gist_id}","starred_url":"https://api.github.com/users/pkaeding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkaeding/subscriptions","organizations_url":"https://api.github.com/users/pkaeding/orgs","repos_url":"https://api.github.com/users/pkaeding/repos","events_url":"https://api.github.com/users/pkaeding/events{/privacy}","received_events_url":"https://api.github.com/users/pkaeding/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-22T06:13:15Z","updated_at":"2015-05-22T06:37:43Z","closed_at":"2015-05-22T06:37:43Z","body":"Assuming a routes definition like:\r\n\r\n    GET     /assets/*file               controllers.Assets.at(path=\"/public\", file)\r\n\r\nIf I request `/assets/foo` or `/assets/stylesheets/bar`, I get a `404` as expected,  However, accessing `/assets/stylesheets` results in a `500` response with the following logged:\r\n\r\n```\r\n! @6m8bn5ei8 - Internal server error, for (GET) [/assets/stylesheets] ->\r\n\r\nplay.api.Application$$anon$1: Execution exception[[RuntimeException: Unexpected error while serving stylesheets at /public: null]]\r\n\tat play.api.Application$class.handleError(Application.scala:296) ~[com.typesafe.play.play_2.10-2.3.8.jar:2.3.8]\r\n\tat play.api.DefaultApplication.handleError(Application.scala:402) [com.typesafe.play.play_2.10-2.3.8.jar:2.3.8]\r\n\tat play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$4.apply(PlayDefaultUpstreamHandler.scala:320) [com.typesafe.play.play_2.10-2.3.8.jar:2.3.8]\r\n\tat play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$4.apply(PlayDefaultUpstreamHandler.scala:320) [com.typesafe.play.play_2.10-2.3.8.jar:2.3.8]\r\n\tat scala.Option.map(Option.scala:145) [org.scala-lang.scala-library-2.10.4.jar:na]\r\nCaused by: java.lang.RuntimeException: Unexpected error while serving stylesheets at /public: null\r\n\tat controllers.AssetsBuilder$$anonfun$at$1$$anonfun$apply$1.applyOrElse(Assets.scala:432) ~[com.typesafe.play.play_2.10-2.3.8.jar:8aae6734e371eeb215085b1bd35fc225ff5f7485]\r\n\tat controllers.AssetsBuilder$$anonfun$at$1$$anonfun$apply$1.applyOrElse(Assets.scala:425) ~[com.typesafe.play.play_2.10-2.3.8.jar:8aae6734e371eeb215085b1bd35fc225ff5f7485]\r\n\tat scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:344) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:343) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n\tat scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) [org.scala-lang.scala-library-2.10.4.jar:na]\r\nCaused by: java.lang.NullPointerException: null\r\n\tat java.io.FilterInputStream.close(FilterInputStream.java:181) ~[na:1.7.0_06]\r\n\tat sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream.close(JarURLConnection.java:108) ~[na:1.7.0_06]\r\n\tat controllers.AssetInfo$$anonfun$4.apply(Assets.scala:149) ~[com.typesafe.play.play_2.10-2.3.8.jar:8aae6734e371eeb215085b1bd35fc225ff5f7485]\r\n\tat controllers.AssetInfo$$anonfun$4.apply(Assets.scala:144) ~[com.typesafe.play.play_2.10-2.3.8.jar:8aae6734e371eeb215085b1bd35fc225ff5f7485]\r\n\tat scala.Option.map(Option.scala:145) [org.scala-lang.scala-library-2.10.4.jar:na]\r\n```\r\n\r\nThe same is true for `/assets/images` and `/assets/javascripts`."},"comment":{"url":"https://api.github.com/repos/playframework/playframework/issues/comments/104537678","html_url":"https://github.com/playframework/playframework/issues/4531#issuecomment-104537678","issue_url":"https://api.github.com/repos/playframework/playframework/issues/4531","id":104537678,"user":{"login":"jroper","id":105833,"avatar_url":"https://avatars.githubusercontent.com/u/105833?v=3","gravatar_id":"","url":"https://api.github.com/users/jroper","html_url":"https://github.com/jroper","followers_url":"https://api.github.com/users/jroper/followers","following_url":"https://api.github.com/users/jroper/following{/other_user}","gists_url":"https://api.github.com/users/jroper/gists{/gist_id}","starred_url":"https://api.github.com/users/jroper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jroper/subscriptions","organizations_url":"https://api.github.com/users/jroper/orgs","repos_url":"https://api.github.com/users/jroper/repos","events_url":"https://api.github.com/users/jroper/events{/privacy}","received_events_url":"https://api.github.com/users/jroper/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T06:37:43Z","updated_at":"2015-05-22T06:37:43Z","body":"Duplicate of #3459."}}