Program: 137722
Project: 137722
Buggy source:
@Override protected void okPressed(){
  if (!IndicatorCategoryHelper.isUserDefCategory(category)) {
    storeTdExpValuesFromText(tempExpression,editTextNotUDI);
  }
 else {
    storeTdExpValuesFromText(tempExpression,tab1_fullSql);
    tempVariableMap.clear();
    if (IndicatorCategoryHelper.isUserDefMatching(category)) {
      tempVariableMap.put(GenericSQLHandler.UDI_MATCHING,tab0_match_match_var.getText());
      tempVariableMap.put(GenericSQLHandler.UDI_WHERE,tab0_match_where_var.getText());
      storeExpForMatch();
    }
 else {
      if (IndicatorCategoryHelper.isUserDefCount(category)) {
        tempVariableMap.put(GenericSQLHandler.UDI_WHERE,tab0_count_where_var.getText());
      }
 else       if (IndicatorCategoryHelper.isUserDefRealValue(category)) {
        tempVariableMap.put(GenericSQLHandler.UDI_COLUMN,tab0_realvalue_column_var.getText());
        tempVariableMap.put(GenericSQLHandler.UDI_WHERE,tab0_realvalue_where_var.getText());
      }
 else       if (IndicatorCategoryHelper.isUserDefFrequency(category)) {
        tempVariableMap.put(GenericSQLHandler.UDI_FIRST_COLUMN,tab0_fre_first_var.getText());
        tempVariableMap.put(GenericSQLHandler.UDI_SECOND_COLUMN,tab0_fre_second_var.getText());
        tempVariableMap.put(GenericSQLHandler.UDI_WHERE,tab0_fre_where_var.getText());
        tempVariableMap.put(GenericSQLHandler.UDI_GROUP_BY,tab0_fre_groupby_var.getText());
        tempVariableMap.put(GenericSQLHandler.UDI_ORDER_BY,tab0_fre_orderby_var.getText());
      }
      storeViewRowsExp();
    }
    tempExpression.setExpressionVariableMap(tempVariableMap);
  }
  super.okPressed();
}

Fixed version (ground truth):
@Override protected void okPressed(){
  if (!IndicatorCategoryHelper.isUserDefCategory(category)) {
    tempExpression=storeTdExpValuesFromText(editTextNotUDI);
  }
 else {
    tempExpression=storeTdExpValuesFromText(tab1_fullSql);
    tempVariableMap.clear();
    if (IndicatorCategoryHelper.isUserDefMatching(category)) {
      tempVariableMap.put(GenericSQLHandler.UDI_MATCHING,tab0_match_match_var.getText());
      tempVariableMap.put(GenericSQLHandler.UDI_WHERE,tab0_match_where_var.getText());
      storeExpForMatch();
    }
 else {
      if (IndicatorCategoryHelper.isUserDefCount(category)) {
        tempVariableMap.put(GenericSQLHandler.UDI_WHERE,tab0_count_where_var.getText());
      }
 else       if (IndicatorCategoryHelper.isUserDefRealValue(category)) {
        tempVariableMap.put(GenericSQLHandler.UDI_COLUMN,tab0_realvalue_column_var.getText());
        tempVariableMap.put(GenericSQLHandler.UDI_WHERE,tab0_realvalue_where_var.getText());
      }
 else       if (IndicatorCategoryHelper.isUserDefFrequency(category)) {
        tempVariableMap.put(GenericSQLHandler.UDI_FIRST_COLUMN,tab0_fre_first_var.getText());
        tempVariableMap.put(GenericSQLHandler.UDI_SECOND_COLUMN,tab0_fre_second_var.getText());
        tempVariableMap.put(GenericSQLHandler.UDI_WHERE,tab0_fre_where_var.getText());
        tempVariableMap.put(GenericSQLHandler.UDI_GROUP_BY,tab0_fre_groupby_var.getText());
        tempVariableMap.put(GenericSQLHandler.UDI_ORDER_BY,tab0_fre_orderby_var.getText());
      }
      storeViewRowsExp();
    }
    tempExpression.setExpressionVariableMap(tempVariableMap);
  }
  super.okPressed();
}