NullPointerException occured : Try to read teamFotoId on null object models.TeamModel (controllers.Team.fotos, line 464)
* @param teamId
*/
public static void fotos(long teamId) {
TeamModel team = TeamModel.findById(teamId);
models.Image img = models.Image.findById( team.teamFotoId);
File f = new File(Application.getDataPath() + File.separator +img.filename);
response.setContentTypeIfNotSet("image/jpeg");
if (f==null) {
Logger.error("Image error id:" + teamId);
return;