Program: 168717
Project: 168717
Buggy source:
@Override public List<Statistics> find(String tenantId,String name,Map<String,String> dimensions,DateTime startTime,@Nullable DateTime endTime,List<String> statistics,int period) throws Exception {
  String serieNameRegex=buildSerieNameRegex(tenantId,name,dimensions);
  String statsPart=buildStatsPart(statistics);
  String timePart=Utils.WhereClauseBuilder.buildTimePart(startTime,endTime);
  String periodPart=buildPeriodPart(period);
  String query=String.format("String_Node_Str",statsPart,serieNameRegex,timePart,periodPart);
  logger.debug("String_Node_Str",query);
  List<Serie> result=this.influxDB.Query(this.config.influxDB.getName(),query,TimeUnit.MILLISECONDS);
  List<Statistics> statisticsList=new LinkedList<Statistics>();
  for (  Serie serie : result) {
    Utils.SerieNameConverter serieNameConverter=new Utils.SerieNameConverter(serie.getName());
    Statistics statistic=new Statistics();
    statistic.setName(serieNameConverter.getMetricName());
    List<String> colNamesList=new LinkedList<>(statistics);
    colNamesList.add(0,"String_Node_Str");
    statistic.setColumns(colNamesList);
    statistic.setDimensions(serieNameConverter.getDimensions());
    List<List<Object>> valObjArryArry=new LinkedList<List<Object>>();
    statistic.setStatistics(valObjArryArry);
    final String[] colNames=serie.getColumns();
    final List<Map<String,Object>> rows=serie.getRows();
    for (    Map<String,Object> row : rows) {
      List<Object> valObjArry=new ArrayList<>();
      Double timeDouble=(Double)row.get(colNames[0]);
      valObjArry.add(DATETIME_FORMATTER.print(timeDouble.longValue()));
      for (int j=1; j < statistics.size() + 1; j++) {
        valObjArry.add(row.get(colNames[j]));
      }
      valObjArryArry.add(valObjArry);
    }
    statisticsList.add(statistic);
  }
  return statisticsList;
}

Fixed version (ground truth):
@Override public List<Statistics> find(String tenantId,String name,Map<String,String> dimensions,DateTime startTime,@Nullable DateTime endTime,List<String> statistics,int period) throws Exception {
  String serieNameRegex=buildSerieNameRegex(tenantId,name,dimensions);
  String statsPart=buildStatsPart(statistics);
  String timePart=Utils.WhereClauseBuilder.buildTimePart(startTime,endTime);
  String periodPart=buildPeriodPart(period);
  String query=String.format("String_Node_Str",statsPart,serieNameRegex,timePart,periodPart);
  logger.debug("String_Node_Str",query);
  List<Statistics> statisticsList=new LinkedList<Statistics>();
  List<Serie> result=null;
  try {
    result=this.influxDB.Query(this.config.influxDB.getName(),query,TimeUnit.MILLISECONDS);
  }
 catch (  RuntimeException e) {
    if (e.getMessage().equals("String_Node_Str")) {
      return statisticsList;
    }
 else {
      logger.error("String_Node_Str",e);
      throw e;
    }
  }
  for (  Serie serie : result) {
    String serieName=serie.getName();
    if (!serieNameMatcher(serieName)) {
      logger.warn("String_Node_Str",serieName);
      continue;
    }
    Utils.SerieNameConverter serieNameConverter=new Utils.SerieNameConverter(serieName);
    Statistics statistic=new Statistics();
    statistic.setName(serieNameConverter.getMetricName());
    List<String> colNamesList=new LinkedList<>(statistics);
    colNamesList.add(0,"String_Node_Str");
    statistic.setColumns(colNamesList);
    statistic.setDimensions(serieNameConverter.getDimensions());
    List<List<Object>> valObjArryArry=new LinkedList<List<Object>>();
    statistic.setStatistics(valObjArryArry);
    final String[] colNames=serie.getColumns();
    final List<Map<String,Object>> rows=serie.getRows();
    for (    Map<String,Object> row : rows) {
      List<Object> valObjArry=new ArrayList<>();
      Double timeDouble=(Double)row.get(colNames[0]);
      valObjArry.add(DATETIME_FORMATTER.print(timeDouble.longValue()));
      for (int j=1; j < statistics.size() + 1; j++) {
        valObjArry.add(row.get(colNames[j]));
      }
      valObjArryArry.add(valObjArry);
    }
    statisticsList.add(statistic);
  }
  return statisticsList;
}