private static void setupDefaultLicense( CrawlPermission crawlPermission ) {
if( crawlPermission.getLicense() == null ) {
crawlPermission.setLicense( License.findByNameStartsWith(Const.LDL_UKWA_LICENSE) );
}
}
<BUG>public static Result edit(Long id) {
User user = User.findByEmail(request().username());
CrawlPermission crawlPermission = CrawlPermission.findById(id);</BUG>
crawlPermission.target.formUrl = crawlPermission.target.fieldUrl();
Form<CrawlPermission> crawlPermissionForm = Form.form(CrawlPermission.class);

private static void setupDefaultLicense( CrawlPermission crawlPermission ) {
if( crawlPermission.getLicense() == null ) {
crawlPermission.setLicense( License.findByNameStartsWith(Const.LDL_UKWA_LICENSE) );
}
}
public static Result edit(Long id) {
CrawlPermission crawlPermission = CrawlPermission.findById(id);
if (crawlPermission == null) return notFound("There is no CrawlPermission with id " + id);
User user = User.findByEmail(request().username());
crawlPermission.target.formUrl = crawlPermission.target.fieldUrl();
Form<CrawlPermission> crawlPermissionForm = Form.form(CrawlPermission.class);
