Program: 137829
Project: 137829
Buggy source:
@Override protected boolean doExecute() throws Exception {
  IndicatorDefinition definition0=IndicatorDefinitionFileHelper.getSystemIndicatorByName(AVERAGE_LENGTH);
  IndicatorDefinition definition1=IndicatorDefinitionFileHelper.getSystemIndicatorByName(AVERAGE_LENGTH_WITH_BLANK);
  IndicatorDefinition definition2=IndicatorDefinitionFileHelper.getSystemIndicatorByName(AVERAGE_LENGTH_WITH_BLANK_AND_NULL);
  IndicatorDefinition definition3=IndicatorDefinitionFileHelper.getSystemIndicatorByName(AVERAGE_LENGTH_WITH_NULL);
  IndicatorDefinition definition4=IndicatorDefinitionFileHelper.getSystemIndicatorByName(MAXIMAL_LENGTH);
  IndicatorDefinition definition5=IndicatorDefinitionFileHelper.getSystemIndicatorByName(MAXIMAL_LENGTH_WITH_BLANK);
  IndicatorDefinition definition6=IndicatorDefinitionFileHelper.getSystemIndicatorByName(MAXIMAL_LENGTH_WITH_BLANK_AND_NULL);
  IndicatorDefinition definition7=IndicatorDefinitionFileHelper.getSystemIndicatorByName(MAXIMAL_LENGTH_WITH_NULL);
  IndicatorDefinition definition8=IndicatorDefinitionFileHelper.getSystemIndicatorByName(MINIMAL_LENGTH);
  IndicatorDefinition definition9=IndicatorDefinitionFileHelper.getSystemIndicatorByName(MINIMAL_LENGTH_WITH_BLANK);
  IndicatorDefinition definition10=IndicatorDefinitionFileHelper.getSystemIndicatorByName(MINIMAL_LENGTH_WITH_BLANK_AND_NULL);
  IndicatorDefinition definition11=IndicatorDefinitionFileHelper.getSystemIndicatorByName(MINIMAL_LENGTH_WITH_NULL);
  if (definition0 != null && definition1 != null && definition2 != null && definition3 != null && definition4 != null && definition5 != null && definition6 != null && definition7 != null && definition8 != null && definition9 != null && definition10 != null && definition11 != null) {
    IndicatorDefinitionFileHelper.addSqlExpression(definition0,SQLITE,"String_Node_Str");
    IndicatorDefinitionFileHelper.addSqlExpression(definition1,SQLITE,"String_Node_Str");
    IndicatorDefinitionFileHelper.addSqlExpression(definition2,SQLITE,"String_Node_Str");
    IndicatorDefinitionFileHelper.addSqlExpression(definition3,SQLITE,"String_Node_Str");
    IndicatorDefinitionFileHelper.addSqlExpression(definition4,SQLITE,"String_Node_Str");
    IndicatorDefinitionFileHelper.addSqlExpression(definition5,SQLITE,"String_Node_Str");
    IndicatorDefinitionFileHelper.addSqlExpression(definition6,SQLITE,"String_Node_Str");
    IndicatorDefinitionFileHelper.addSqlExpression(definition7,SQLITE,"String_Node_Str");
    IndicatorDefinitionFileHelper.addSqlExpression(definition8,SQLITE,"String_Node_Str");
    IndicatorDefinitionFileHelper.addSqlExpression(definition9,SQLITE,"String_Node_Str");
    IndicatorDefinitionFileHelper.addSqlExpression(definition10,SQLITE,"String_Node_Str");
    IndicatorDefinitionFileHelper.addSqlExpression(definition11,SQLITE,"String_Node_Str");
    return IndicatorDefinitionFileHelper.save(definition0) & IndicatorDefinitionFileHelper.save(definition1) & IndicatorDefinitionFileHelper.save(definition2)& IndicatorDefinitionFileHelper.save(definition3)& IndicatorDefinitionFileHelper.save(definition4)& IndicatorDefinitionFileHelper.save(definition5)& IndicatorDefinitionFileHelper.save(definition6)& IndicatorDefinitionFileHelper.save(definition7)& IndicatorDefinitionFileHelper.save(definition8)& IndicatorDefinitionFileHelper.save(definition9)& IndicatorDefinitionFileHelper.save(definition10)& IndicatorDefinitionFileHelper.save(definition11);
  }
  return false;
}

Fixed version (ground truth):
@Override protected boolean doExecute() throws Exception {
  boolean result=true;
  for (  String indicatorName : TextStatisticsIndicators) {
    IndicatorDefinition indiDefinition=IndicatorDefinitionFileHelper.getSystemIndicatorByName(indicatorName);
    if (indiDefinition != null && IndicatorDefinitionFileHelper.removeSqlExpression(indiDefinition,SQLITE)) {
      String body="String_Node_Str";
      if (indicatorName.startsWith("String_Node_Str")) {
        body=BODY_AVERAGE;
      }
 else       if (indicatorName.startsWith("String_Node_Str")) {
        body=BODY_MAX;
      }
 else       if (indicatorName.startsWith("String_Node_Str")) {
        body=BODY_MIN;
      }
      List<TdExpression> remainExpLs=new ArrayList<TdExpression>();
      remainExpLs.addAll(indiDefinition.getSqlGenericExpression());
      indiDefinition.getSqlGenericExpression().clear();
      IndicatorDefinitionFileHelper.addSqlExpression(indiDefinition,SQLITE,body);
      indiDefinition.getSqlGenericExpression().addAll(remainExpLs);
      result=result && IndicatorDefinitionFileHelper.save(indiDefinition);
    }
  }
  DefinitionHandler.getInstance().reloadIndicatorsDefinitions();
  return result;
}