Program: 17712
Project: 17712
Buggy source:
private void performQuery(){
  try {
    if (this.method instanceof ThermalNetwork) {
      QueryThermalTab tab=new QueryThermalTab((ProjectEGFile)this.getEncogObject());
      EncogWorkBench.getInstance().getMainWindow().openModalTab(tab,"String_Node_Str");
    }
 else {
      SelectItem selectClassification=null;
      SelectItem selectRegression=null;
      SelectItem selectOCR;
      List<SelectItem> list=new ArrayList<SelectItem>();
      if (this.method instanceof MLClassification) {
        list.add(selectClassification=new SelectItem("String_Node_Str","String_Node_Str"));
      }
      if (this.method instanceof MLRegression) {
        list.add(selectRegression=new SelectItem("String_Node_Str","String_Node_Str"));
      }
      list.add(selectOCR=new SelectItem("String_Node_Str","String_Node_Str"));
      SelectDialog sel=new SelectDialog(EncogWorkBench.getInstance().getMainWindow(),list);
      sel.setVisible(true);
      if (sel.getSelected() == selectClassification) {
        ClassificationQueryTab tab=new ClassificationQueryTab(((ProjectEGFile)this.getEncogObject()));
        EncogWorkBench.getInstance().getMainWindow().openModalTab(tab,"String_Node_Str");
      }
 else       if (sel.getSelected() == selectRegression) {
        RegressionQueryTab tab=new RegressionQueryTab(((ProjectEGFile)this.getEncogObject()));
        EncogWorkBench.getInstance().getMainWindow().openModalTab(tab,"String_Node_Str");
      }
 else       if (sel.getSelected() == selectOCR) {
        OCRQueryTab tab=new OCRQueryTab(((ProjectEGFile)this.method));
        EncogWorkBench.getInstance().getMainWindow().openModalTab(tab,"String_Node_Str");
      }
    }
  }
 catch (  Throwable t) {
    EncogWorkBench.displayError("String_Node_Str",t);
  }
}

Fixed version (ground truth):
private void performQuery(){
  try {
    if (this.method instanceof ThermalNetwork) {
      QueryThermalTab tab=new QueryThermalTab((ProjectEGFile)this.getEncogObject());
      EncogWorkBench.getInstance().getMainWindow().openModalTab(tab,"String_Node_Str");
    }
 else {
      SelectItem selectClassification=null;
      SelectItem selectRegression=null;
      SelectItem selectOCR;
      List<SelectItem> list=new ArrayList<SelectItem>();
      if (this.method instanceof MLClassification) {
        list.add(selectClassification=new SelectItem("String_Node_Str","String_Node_Str"));
      }
      if (this.method instanceof MLRegression) {
        list.add(selectRegression=new SelectItem("String_Node_Str","String_Node_Str"));
      }
      list.add(selectOCR=new SelectItem("String_Node_Str","String_Node_Str"));
      SelectDialog sel=new SelectDialog(EncogWorkBench.getInstance().getMainWindow(),list);
      sel.setVisible(true);
      if (sel.getSelected() == selectClassification) {
        ClassificationQueryTab tab=new ClassificationQueryTab(((ProjectEGFile)this.getEncogObject()));
        EncogWorkBench.getInstance().getMainWindow().openModalTab(tab,"String_Node_Str");
      }
 else       if (sel.getSelected() == selectRegression) {
        RegressionQueryTab tab=new RegressionQueryTab(((ProjectEGFile)this.getEncogObject()));
        EncogWorkBench.getInstance().getMainWindow().openModalTab(tab,"String_Node_Str");
      }
 else       if (sel.getSelected() == selectOCR) {
        OCRQueryTab tab=new OCRQueryTab(((ProjectEGFile)this.getEncogObject()));
        EncogWorkBench.getInstance().getMainWindow().openModalTab(tab,"String_Node_Str");
      }
    }
  }
 catch (  Throwable t) {
    EncogWorkBench.displayError("String_Node_Str",t);
  }
}