Program: 30211
Project: 30211
Buggy source:
private void setAction(){
  String id=actionPanel.getText();
  getCenterPanel().clear();
  addInputPanel(actionPanel);
  Action tmp=null;
  if (id.equals(CUSTOM_ACTION_STR)) {
    addInputPanel(classPanel);
    if (classPanel != null && classPanel.getText() != null && !classPanel.getText().trim().isEmpty())     tmp=ActionFactory.createByClass(classPanel.getText(),null);
    if (tmp == null) {
      classPanel.setError(true);
    }
 else {
      classPanel.setError(false);
    }
    getStage().setKeyboardFocus(classPanel.getField());
    setInfo(CUSTOM_INFO);
  }
 else {
    tmp=ActionFactory.create(id,null);
    setInfo(ActionUtils.getInfo(tmp));
  }
  if (e == null || tmp == null || !(e.getClass().getName().equals(tmp.getClass().getName())))   e=tmp;
  if (e != null) {
    Param[] params=ActionUtils.getParams(e);
    i=new InputPanel[params.length];
    for (int j=0; j < params.length; j++) {
      if (params[j].options instanceof Enum[]) {
        i[j]=InputPanelFactory.createInputPanel(getSkin(),params[j].name,params[j].desc,params[j].type,params[j].mandatory,params[j].defaultValue,(Enum[])params[j].options);
      }
 else {
        i[j]=InputPanelFactory.createInputPanel(getSkin(),params[j].name,params[j].desc,params[j].type,params[j].mandatory,params[j].defaultValue,(String[])params[j].options);
      }
      addInputPanel(i[j]);
      if ((i[j].getField() instanceof TextField && params[j].name.toLowerCase().endsWith("String_Node_Str")) || i[j].getField() instanceof ScrollPane) {
        i[j].getCell(i[j].getField()).fillX();
      }
    }
  }
 else {
    i=new InputPanel[0];
  }
}

Fixed version (ground truth):
private void setAction(){
  String id=actionPanel.getText();
  getCenterPanel().clear();
  addInputPanel(actionPanel);
  Action tmp=null;
  if (id.equals(CUSTOM_ACTION_STR)) {
    addInputPanel(classPanel);
    if (classPanel != null && classPanel.getText() != null && !classPanel.getText().trim().isEmpty())     tmp=ActionFactory.createByClass(classPanel.getText(),null);
    if (tmp == null) {
      classPanel.setError(true);
    }
 else {
      classPanel.setError(false);
    }
    if (getStage() != null)     getStage().setKeyboardFocus(classPanel.getField());
    setInfo(CUSTOM_INFO);
  }
 else {
    tmp=ActionFactory.create(id,null);
    setInfo(ActionUtils.getInfo(tmp));
  }
  if (e == null || tmp == null || !(e.getClass().getName().equals(tmp.getClass().getName())))   e=tmp;
  if (e != null) {
    Param[] params=ActionUtils.getParams(e);
    i=new InputPanel[params.length];
    for (int j=0; j < params.length; j++) {
      if (params[j].options instanceof Enum[]) {
        i[j]=InputPanelFactory.createInputPanel(getSkin(),params[j].name,params[j].desc,params[j].type,params[j].mandatory,params[j].defaultValue,(Enum[])params[j].options);
      }
 else {
        i[j]=InputPanelFactory.createInputPanel(getSkin(),params[j].name,params[j].desc,params[j].type,params[j].mandatory,params[j].defaultValue,(String[])params[j].options);
      }
      addInputPanel(i[j]);
      if ((i[j].getField() instanceof TextField && params[j].name.toLowerCase().endsWith("String_Node_Str")) || i[j].getField() instanceof ScrollPane) {
        i[j].getCell(i[j].getField()).fillX();
      }
    }
  }
 else {
    i=new InputPanel[0];
  }
}