Program: 96849
Project: 96849
Buggy source:
private void runOperation(DispoProgram program,DispoSet setToEdit,DispoSetData newSet){
  OperationReport report=new OperationReport();
  String operation=newSet.getOperation();
  ArtifactReadable author=getQuery().findUser();
  if (operation.equals(DispoStrings.Operation_Import)) {
    try {
      HashMap<String,DispoItem> nameToItemMap=getItemsMap(program,setToEdit);
      DispoImporterApi importer;
      if (setToEdit.getDispoType().equalsIgnoreCase("String_Node_Str")) {
        importer=importerFactory.createImporter(ImportFormat.LIS);
      }
 else {
        importer=importerFactory.createImporter(ImportFormat.TMO);
      }
      List<DispoItem> itemsFromParse=importer.importDirectory(nameToItemMap,new File(setToEdit.getImportPath()),report);
      List<DispoItem> itemsToCreate=new ArrayList<>();
      List<DispoItem> itemsToEdit=new ArrayList<>();
      for (      DispoItem item : itemsFromParse) {
        if (item.getGuid() == null) {
          itemsToCreate.add(item);
          report.addEntry(item.getName(),"String_Node_Str",DispoSummarySeverity.NEW);
        }
 else {
          itemsToEdit.add(item);
        }
      }
      if (itemsToCreate.size() > 0) {
        createDispoItems(program,setToEdit.getGuid(),itemsToCreate);
      }
      if (itemsToEdit.size() > 0) {
        editDispoItems(program,itemsToEdit,true,"String_Node_Str");
      }
    }
 catch (    Exception ex) {
      throw new OseeCoreException(ex);
    }
  }
  List<Note> notesList=setToEdit.getNotesList();
  notesList.add(generateOperationNotes(operation));
  newSet.setNotesList(notesList);
  getWriter().updateOperationSummary(author,program,setToEdit,report);
}

Fixed version (ground truth):
private void runOperation(DispoProgram program,DispoSet setToEdit,DispoSetData newSet){
  OperationReport report=new OperationReport();
  String operation=newSet.getOperation();
  ArtifactReadable author=getQuery().findUser();
  if (operation.equals(DispoStrings.Operation_Import)) {
    try {
      HashMap<String,DispoItem> nameToItemMap=getItemsMap(program,setToEdit);
      DispoImporterApi importer;
      if (setToEdit.getDispoType().equalsIgnoreCase("String_Node_Str")) {
        importer=importerFactory.createImporter(ImportFormat.LIS);
      }
 else {
        importer=importerFactory.createImporter(ImportFormat.TMO);
      }
      List<DispoItem> itemsFromParse=importer.importDirectory(nameToItemMap,new File(setToEdit.getImportPath()),report);
      List<DispoItem> itemsToCreate=new ArrayList<>();
      List<DispoItem> itemsToEdit=new ArrayList<>();
      for (      DispoItem item : itemsFromParse) {
        if (item.getGuid() == null) {
          itemsToCreate.add(item);
          report.addEntry(item.getName(),"String_Node_Str",DispoSummarySeverity.NEW);
        }
 else {
          itemsToEdit.add(item);
        }
      }
      if (!report.getStatus().isFailed()) {
        if (itemsToCreate.size() > 0) {
          createDispoItems(program,setToEdit.getGuid(),itemsToCreate);
        }
        if (itemsToEdit.size() > 0) {
          editDispoItems(program,itemsToEdit,true,"String_Node_Str");
        }
      }
    }
 catch (    Exception ex) {
      throw new OseeCoreException(ex);
    }
  }
  List<Note> notesList=setToEdit.getNotesList();
  notesList.add(generateOperationNotes(operation));
  newSet.setNotesList(notesList);
  getWriter().updateOperationSummary(author,program,setToEdit,report);
}