Program: 98745
Project: 98745
Buggy source:
private void copyReportsToArtifactsDir(ReportSettings settings,AbstractBuild<?,?> build) throws IOException, InterruptedException {
  if (settings instanceof PRQAReportSettings) {
    PRQAReportSettings prqaReportSettings=(PRQAReportSettings)settings;
    for (    PRQAContext.QARReportType type : prqaReportSettings.chosenReportTypes) {
      String pattern="String_Node_Str" + PRQAReport.getNamingTemplate(type,PRQAReport.XHTML_REPORT_EXTENSION);
      FilePath[] files=build.getWorkspace().list(pattern);
      if (files.length >= 1) {
        outStream.println(Messages.PRQANotifier_FoundReport(PRQAReport.getNamingTemplate(type,PRQAReport.XHTML_REPORT_EXTENSION)));
        String artifactDir=build.getArtifactsDir().getPath();
        FilePath targetDir=new FilePath(new File(artifactDir + "String_Node_Str" + PRQAReport.getNamingTemplate(type,PRQAReport.XHTML_REPORT_EXTENSION)));
        outStream.println(Messages.PRQANotifier_CopyToTarget(targetDir.getName()));
        build.getWorkspace().list("String_Node_Str" + PRQAReport.getNamingTemplate(type,PRQAReport.XHTML_REPORT_EXTENSION))[0].copyTo(targetDir);
        outStream.println(Messages.PRQANotifier_SuccesCopyReport());
      }
    }
  }
 else   if (settings instanceof QaFrameworkReportSettings) {
    QaFrameworkReportSettings qaFrameworkSettings=(QaFrameworkReportSettings)settings;
    File workspace=new File(build.getWorkspace().getRemote());
    File artefact=build.getArtifactsDir();
    try {
      copyGeneratedReportsToJobWorkspace(workspace,qaFrameworkSettings.getQaProject());
      copyReportsFromWorkspaceToArtefactsDir(artefact,workspace,build.getTimeInMillis());
    }
 catch (    IOException ex) {
    }
  }
}

Fixed version (ground truth):
private void copyReportsToArtifactsDir(ReportSettings settings,AbstractBuild<?,?> build) throws IOException, InterruptedException {
  if (settings instanceof PRQAReportSettings) {
    PRQAReportSettings prqaReportSettings=(PRQAReportSettings)settings;
    for (    PRQAContext.QARReportType type : prqaReportSettings.chosenReportTypes) {
      String pattern="String_Node_Str" + PRQAReport.getNamingTemplate(type,PRQAReport.XHTML_REPORT_EXTENSION);
      FilePath[] files=build.getWorkspace().list(pattern);
      if (files.length >= 1) {
        outStream.println(Messages.PRQANotifier_FoundReport(PRQAReport.getNamingTemplate(type,PRQAReport.XHTML_REPORT_EXTENSION)));
        String artifactDir=build.getArtifactsDir().getPath();
        FilePath targetDir=new FilePath(new File(artifactDir + "String_Node_Str" + PRQAReport.getNamingTemplate(type,PRQAReport.XHTML_REPORT_EXTENSION)));
        outStream.println(Messages.PRQANotifier_CopyToTarget(targetDir.getName()));
        build.getWorkspace().list("String_Node_Str" + PRQAReport.getNamingTemplate(type,PRQAReport.XHTML_REPORT_EXTENSION))[0].copyTo(targetDir);
        outStream.println(Messages.PRQANotifier_SuccesCopyReport());
      }
    }
  }
 else   if (settings instanceof QaFrameworkReportSettings) {
    QaFrameworkReportSettings qaFrameworkSettings=(QaFrameworkReportSettings)settings;
    File workspace=new File(build.getWorkspace().getRemote());
    File artefact=build.getArtifactsDir();
    try {
      copyGeneratedReportsToJobWorkspace(workspace,qaFrameworkSettings.getQaProject());
      copyReportsFromWorkspaceToArtefactsDir(artefact,workspace,build.getTimeInMillis());
    }
 catch (    IOException ex) {
      outStream.println("String_Node_Str");
      log.log(Level.SEVERE,"String_Node_Str",ex.getCause());
    }
  }
}