Form<Flag> flagForm = Form.form(Flag.class);
Flag flag = new Flag();
flagForm = flagForm.fill(flag);
return ok(newForm.render(flagForm, user));
}
<BUG>public static Result edit(Long id) {
User user = User.findByEmail(request().username());
Flag flag = Flag.findById(id);</BUG>
Form<Flag> flagForm = Form.form(Flag.class);
flagForm = flagForm.fill(flag);

Form<Flag> flagForm = Form.form(Flag.class);
Flag flag = new Flag();
flagForm = flagForm.fill(flag);
return ok(newForm.render(flagForm, user));
}
public static Result edit(Long id) {
Flag flag = Flag.findById(id);
if (flag == null) return notFound("There is no Flag with ID " + id);
User user = User.findByEmail(request().username());
Form<Flag> flagForm = Form.form(Flag.class);
flagForm = flagForm.fill(flag);
