playframework/play — pull request #396 by hongrich (2011-12-05 00:33:28+00:00)
Title: [#1295] Don't require a request in JavaExtensions.urlEncode

Framework version: 1.2.x

JavaExtensions.urlEncode should fall back to default encoding if there are no current request (e.g. rendering a template in a job) otherwise it would cause a NPE.

https://play.lighthouseapp.com/projects/57987-play-framework/tickets/1295