Program: 20273
Project: 20273
Buggy source:
@Override public Object createValue() throws BasicException {
  boolean dateRange=false;
  Object[] afilter=new Object[12];
  if (jtxtTicketID.getText() == null || jtxtTicketID.getText().equals("String_Node_Str")) {
    afilter[0]=QBFCompareEnum.COMP_NONE;
    afilter[1]=null;
  }
 else {
    afilter[0]=QBFCompareEnum.COMP_EQUALS;
    afilter[1]=jtxtTicketID.getValueInteger();
  }
  if (jCheckBoxSales.isSelected() && jCheckBoxRefunds.isSelected() || !jCheckBoxSales.isSelected() && !jCheckBoxRefunds.isSelected()) {
    afilter[2]=QBFCompareEnum.COMP_NONE;
    afilter[3]=null;
  }
 else   if (jCheckBoxSales.isSelected()) {
    afilter[2]=QBFCompareEnum.COMP_EQUALS;
    afilter[3]=0;
  }
 else   if (jCheckBoxRefunds.isSelected()) {
    afilter[2]=QBFCompareEnum.COMP_EQUALS;
    afilter[3]=1;
  }
  afilter[5]=jtxtMoney.getDoubleValue();
  afilter[4]=afilter[5] == null ? QBFCompareEnum.COMP_NONE : jcboMoney.getSelectedItem();
  if (jcboTimeFrame.getSelectedItem() == null) {
    dateRange=true;
    afilter[6]=QBFCompareEnum.COMP_NONE;
    afilter[7]=null;
    afilter[8]=QBFCompareEnum.COMP_NONE;
    afilter[9]=null;
  }
 else {
    int year=cal.get(Calendar.YEAR);
    int month=cal.get(Calendar.MONTH) + 1;
    int day=cal.get(Calendar.DAY_OF_MONTH);
    if (jcboTimeFrame.getSelectedItem() == LocalRes.getIntString("String_Node_Str")) {
      afilter[6]=QBFCompareEnum.COMP_RE;
      afilter[7]="String_Node_Str" + year + "String_Node_Str"+ month+ "String_Node_Str"+ day+ "String_Node_Str";
      afilter[8]=QBFCompareEnum.COMP_NONE;
      afilter[9]=null;
    }
 else     if (jcboTimeFrame.getSelectedItem() == LocalRes.getIntString("String_Node_Str")) {
      afilter[6]=QBFCompareEnum.COMP_RE;
      afilter[7]="String_Node_Str" + year + "String_Node_Str"+ month+ "String_Node_Str";
      afilter[8]=QBFCompareEnum.COMP_NONE;
      afilter[9]=null;
    }
 else     if (jcboTimeFrame.getSelectedItem() == LocalRes.getIntString("String_Node_Str")) {
      afilter[6]=QBFCompareEnum.COMP_RE;
      afilter[7]="String_Node_Str" + Integer.toString(year) + "String_Node_Str";
      afilter[8]=QBFCompareEnum.COMP_NONE;
      afilter[9]=null;
    }
  }
  if (dateRange) {
    String dayF=(jcboDayFrom.getSelectedItem() == null) ? "String_Node_Str" : (String)jcboDayFrom.getSelectedItem();
    String monthF=(jcboMonthFrom.getSelectedItem() == null) ? "String_Node_Str" : (String)jcboMonthFrom.getSelectedItem();
    String dayT=(jcboDayTo.getSelectedItem() == null) ? "String_Node_Str" : String.valueOf(Integer.parseInt((String)jcboDayTo.getSelectedItem()) + 1);
    String monthT=(jcboMonthTo.getSelectedItem() == null) ? "String_Node_Str" : (String)jcboMonthTo.getSelectedItem();
    if (jcboYearFrom.getSelectedItem() == null && jcboYearTo.getSelectedItem() == null) {
      afilter[6]=QBFCompareEnum.COMP_NONE;
      afilter[7]=null;
      afilter[8]=QBFCompareEnum.COMP_NONE;
      afilter[9]=null;
    }
 else     if (jcboYearFrom.getSelectedItem() == null && jcboYearTo.getSelectedItem() != null) {
      afilter[6]=QBFCompareEnum.COMP_NONE;
      afilter[7]=null;
      afilter[8]=QBFCompareEnum.COMP_LESSOREQUALS;
      afilter[9]=jcboYearTo.getSelectedItem() + "String_Node_Str" + monthT+ "String_Node_Str"+ dayT;
    }
 else     if (jcboYearFrom.getSelectedItem() != null && jcboYearTo.getSelectedItem() == null) {
      afilter[6]=QBFCompareEnum.COMP_GREATEROREQUALS;
      afilter[7]=jcboYearFrom.getSelectedItem() + "String_Node_Str" + monthF+ "String_Node_Str"+ dayF;
      afilter[8]=QBFCompareEnum.COMP_NONE;
      afilter[9]=null;
    }
 else {
      afilter[6]=QBFCompareEnum.COMP_GREATEROREQUALS;
      afilter[7]=jcboYearFrom.getSelectedItem() + "String_Node_Str" + monthF+ "String_Node_Str"+ dayF;
      afilter[8]=QBFCompareEnum.COMP_LESSOREQUALS;
      afilter[9]=jcboYearTo.getSelectedItem() + "String_Node_Str" + monthT+ "String_Node_Str"+ dayT;
    }
  }
  if (jcboUser.getSelectedItem() == null) {
    afilter[10]=QBFCompareEnum.COMP_NONE;
    afilter[11]=null;
  }
 else {
    afilter[10]=QBFCompareEnum.COMP_EQUALS;
    afilter[11]=((TaxCategoryInfo)jcboUser.getSelectedItem()).getName();
  }
  return afilter;
}

Fixed version (ground truth):
@Override public Object createValue() throws BasicException {
  boolean dateRange=false;
  Object[] afilter=new Object[12];
  if (jtxtTicketID.getText() == null || jtxtTicketID.getText().equals("String_Node_Str")) {
    afilter[0]=QBFCompareEnum.COMP_NONE;
    afilter[1]=null;
  }
 else {
    afilter[0]=QBFCompareEnum.COMP_EQUALS;
    afilter[1]=jtxtTicketID.getValueInteger();
  }
  if (jCheckBoxSales.isSelected() && jCheckBoxRefunds.isSelected() || !jCheckBoxSales.isSelected() && !jCheckBoxRefunds.isSelected()) {
    afilter[2]=QBFCompareEnum.COMP_NONE;
    afilter[3]=null;
  }
 else   if (jCheckBoxSales.isSelected()) {
    afilter[2]=QBFCompareEnum.COMP_EQUALS;
    afilter[3]=0;
  }
 else   if (jCheckBoxRefunds.isSelected()) {
    afilter[2]=QBFCompareEnum.COMP_EQUALS;
    afilter[3]=1;
  }
  afilter[5]=jtxtMoney.getDoubleValue();
  afilter[4]=afilter[5] == null ? QBFCompareEnum.COMP_NONE : jcboMoney.getSelectedItem();
  if (jcboTimeFrame.getSelectedItem() == null) {
    dateRange=true;
    afilter[6]=QBFCompareEnum.COMP_NONE;
    afilter[7]=null;
    afilter[8]=QBFCompareEnum.COMP_NONE;
    afilter[9]=null;
  }
 else {
    int year=cal.get(Calendar.YEAR);
    String month=(cal.get(Calendar.MONTH) + 1 < 10) ? "String_Node_Str" + (cal.get(Calendar.MONTH) + 1) : Integer.toString(cal.get(Calendar.MONTH) + 1);
    String day=(cal.get(Calendar.DAY_OF_MONTH) < 10) ? "String_Node_Str" + cal.get(Calendar.DAY_OF_MONTH) : Integer.toString(cal.get(Calendar.DAY_OF_MONTH));
    if (jcboTimeFrame.getSelectedItem() == LocalRes.getIntString("String_Node_Str")) {
      afilter[6]=QBFCompareEnum.COMP_RE;
      afilter[7]="String_Node_Str" + year + "String_Node_Str"+ month+ "String_Node_Str"+ day+ "String_Node_Str";
      afilter[8]=QBFCompareEnum.COMP_NONE;
      afilter[9]=null;
    }
 else     if (jcboTimeFrame.getSelectedItem() == LocalRes.getIntString("String_Node_Str")) {
      afilter[6]=QBFCompareEnum.COMP_RE;
      afilter[7]="String_Node_Str" + year + "String_Node_Str"+ month+ "String_Node_Str";
      afilter[8]=QBFCompareEnum.COMP_NONE;
      afilter[9]=null;
    }
 else     if (jcboTimeFrame.getSelectedItem() == LocalRes.getIntString("String_Node_Str")) {
      afilter[6]=QBFCompareEnum.COMP_RE;
      afilter[7]="String_Node_Str" + Integer.toString(year) + "String_Node_Str";
      afilter[8]=QBFCompareEnum.COMP_NONE;
      afilter[9]=null;
    }
  }
  if (dateRange) {
    String dayF=(jcboDayFrom.getSelectedItem() == null) ? "String_Node_Str" : (String)jcboDayFrom.getSelectedItem();
    String monthF=(jcboMonthFrom.getSelectedItem() == null) ? "String_Node_Str" : (String)jcboMonthFrom.getSelectedItem();
    String dayT=(jcboDayTo.getSelectedItem() == null) ? "String_Node_Str" : String.valueOf(Integer.parseInt((String)jcboDayTo.getSelectedItem()) + 1);
    String monthT=(jcboMonthTo.getSelectedItem() == null) ? "String_Node_Str" : (String)jcboMonthTo.getSelectedItem();
    if (jcboYearFrom.getSelectedItem() == null && jcboYearTo.getSelectedItem() == null) {
      afilter[6]=QBFCompareEnum.COMP_NONE;
      afilter[7]=null;
      afilter[8]=QBFCompareEnum.COMP_NONE;
      afilter[9]=null;
    }
 else     if (jcboYearFrom.getSelectedItem() == null && jcboYearTo.getSelectedItem() != null) {
      afilter[6]=QBFCompareEnum.COMP_NONE;
      afilter[7]=null;
      afilter[8]=QBFCompareEnum.COMP_LESSOREQUALS;
      afilter[9]=jcboYearTo.getSelectedItem() + "String_Node_Str" + monthT+ "String_Node_Str"+ dayT;
    }
 else     if (jcboYearFrom.getSelectedItem() != null && jcboYearTo.getSelectedItem() == null) {
      afilter[6]=QBFCompareEnum.COMP_GREATEROREQUALS;
      afilter[7]=jcboYearFrom.getSelectedItem() + "String_Node_Str" + monthF+ "String_Node_Str"+ dayF;
      afilter[8]=QBFCompareEnum.COMP_NONE;
      afilter[9]=null;
    }
 else {
      afilter[6]=QBFCompareEnum.COMP_GREATEROREQUALS;
      afilter[7]=jcboYearFrom.getSelectedItem() + "String_Node_Str" + monthF+ "String_Node_Str"+ dayF;
      afilter[8]=QBFCompareEnum.COMP_LESSOREQUALS;
      afilter[9]=jcboYearTo.getSelectedItem() + "String_Node_Str" + monthT+ "String_Node_Str"+ dayT;
    }
  }
  if (jcboUser.getSelectedItem() == null) {
    afilter[10]=QBFCompareEnum.COMP_NONE;
    afilter[11]=null;
  }
 else {
    afilter[10]=QBFCompareEnum.COMP_EQUALS;
    afilter[11]=((TaxCategoryInfo)jcboUser.getSelectedItem()).getName();
  }
  return afilter;
}