Program: 70064
Project: 70064
Buggy source:
/** 
 * @see org.olat.core.gui.components.form.flexible.impl.FormBasicController#initForm(org.olat.core.gui.components.form.flexible.FormItemContainer,org.olat.core.gui.control.Controller,org.olat.core.gui.UserRequest)
 */
@Override @SuppressWarnings("String_Node_Str") protected void initForm(FormItemContainer formLayout,Controller listener,UserRequest ureq){
  this.setFormTitle("String_Node_Str");
  title=uifactory.addTextElement("String_Node_Str","String_Node_Str",256,feed.getTitle(),this.flc);
  title.setMandatory(true);
  title.setNotEmptyCheck("String_Node_Str");
  description=uifactory.addRichTextElementForStringDataMinimalistic("String_Node_Str","String_Node_Str",feed.getDescription(),5,-1,false,formLayout,ureq.getUserSession(),getWindowControl());
  description.setMandatory(true);
  description.setMaxLength(4000);
  description.setNotEmptyCheck("String_Node_Str");
  RichTextConfiguration richTextConfig=description.getEditorConfiguration();
  richTextConfig.setFileBrowserUploadRelPath("String_Node_Str");
  String VELOCITY_ROOT=Util.getPackageVelocityRoot(this.getClass());
  imageContainer=FormLayoutContainer.createCustomFormLayout("String_Node_Str",getTranslator(),VELOCITY_ROOT + "String_Node_Str");
  imageContainer.setLabel("String_Node_Str",null);
  flc.add(imageContainer);
  deleteImageLink=uifactory.addFormLink("String_Node_Str",imageContainer);
  image=new ImageComponent("String_Node_Str");
  imageContainer.put("String_Node_Str",image);
  file=uifactory.addFileElement("String_Node_Str",this.flc);
  file.addActionListener(this,FormEvent.ONCHANGE);
  if (feed.getImageName() != null) {
    MediaResource imageResource=FeedManager.getInstance().createFeedMediaFile(feed,feed.getImageName());
    setImage(imageResource);
  }
 else {
    imageContainer.setVisible(false);
  }
  Set<String> mimeTypes=new HashSet<String>();
  mimeTypes.add("String_Node_Str");
  mimeTypes.add("String_Node_Str");
  mimeTypes.add("String_Node_Str");
  mimeTypes.add("String_Node_Str");
  file.limitToMimeType(mimeTypes,"String_Node_Str",null);
  final FormLayoutContainer buttonLayout=FormLayoutContainer.createButtonLayout("String_Node_Str",getTranslator());
  this.flc.add(buttonLayout);
  uifactory.addFormSubmitButton("String_Node_Str",buttonLayout);
  cancelButton=uifactory.addFormLink("String_Node_Str",buttonLayout,Link.BUTTON);
}

Fixed version (ground truth):
/** 
 * @see org.olat.core.gui.components.form.flexible.impl.FormBasicController#initForm(org.olat.core.gui.components.form.flexible.FormItemContainer,org.olat.core.gui.control.Controller,org.olat.core.gui.UserRequest)
 */
@Override @SuppressWarnings("String_Node_Str") protected void initForm(FormItemContainer formLayout,Controller listener,UserRequest ureq){
  this.setFormTitle("String_Node_Str");
  String saveTitle=PersistenceHelper.truncateStringDbSave(feed.getTitle(),256,true);
  title=uifactory.addTextElement("String_Node_Str","String_Node_Str",256,saveTitle,this.flc);
  title.setMandatory(true);
  title.setNotEmptyCheck("String_Node_Str");
  description=uifactory.addRichTextElementForStringDataMinimalistic("String_Node_Str","String_Node_Str",feed.getDescription(),5,-1,false,formLayout,ureq.getUserSession(),getWindowControl());
  description.setMandatory(true);
  description.setMaxLength(4000);
  description.setNotEmptyCheck("String_Node_Str");
  RichTextConfiguration richTextConfig=description.getEditorConfiguration();
  richTextConfig.setFileBrowserUploadRelPath("String_Node_Str");
  String VELOCITY_ROOT=Util.getPackageVelocityRoot(this.getClass());
  imageContainer=FormLayoutContainer.createCustomFormLayout("String_Node_Str",getTranslator(),VELOCITY_ROOT + "String_Node_Str");
  imageContainer.setLabel("String_Node_Str",null);
  flc.add(imageContainer);
  deleteImageLink=uifactory.addFormLink("String_Node_Str",imageContainer);
  image=new ImageComponent("String_Node_Str");
  imageContainer.put("String_Node_Str",image);
  file=uifactory.addFileElement("String_Node_Str",this.flc);
  file.addActionListener(this,FormEvent.ONCHANGE);
  if (feed.getImageName() != null) {
    MediaResource imageResource=FeedManager.getInstance().createFeedMediaFile(feed,feed.getImageName());
    setImage(imageResource);
  }
 else {
    imageContainer.setVisible(false);
  }
  Set<String> mimeTypes=new HashSet<String>();
  mimeTypes.add("String_Node_Str");
  mimeTypes.add("String_Node_Str");
  mimeTypes.add("String_Node_Str");
  mimeTypes.add("String_Node_Str");
  file.limitToMimeType(mimeTypes,"String_Node_Str",null);
  final FormLayoutContainer buttonLayout=FormLayoutContainer.createButtonLayout("String_Node_Str",getTranslator());
  this.flc.add(buttonLayout);
  uifactory.addFormSubmitButton("String_Node_Str",buttonLayout);
  cancelButton=uifactory.addFormLink("String_Node_Str",buttonLayout,Link.BUTTON);
}