Program: 97248
Project: 97248
Buggy source:
public void load(CoverageOptionManager coverageOptionManager) throws OseeCoreException {
  coverageUnit.clearCoverageUnits();
  coverageUnit.clearCoverageItems();
  Artifact artifact=getArtifact(false);
  if (artifact != null) {
    for (    String value : artifact.getAttributesToStringList(CoverageAttributeTypes.Item)) {
      CoverageItem item=CoverageItem.createCoverageItem(coverageUnit,value,coverageOptionManager,getTestUnitProvider());
      coverageUnit.addCoverageItem(item);
    }
    coverageUnit.setFileContentsProvider(OseeCoverageUnitFileContentsProvider.getInstance(branch));
    coverageUnit.setNotes(artifact.getSoleAttributeValueAsString(CoverageAttributeTypes.Notes,"String_Node_Str"));
    coverageUnit.setFolder(artifact.isOfType(CoverageArtifactTypes.CoverageFolder));
    coverageUnit.setAssignees(artifact.getSoleAttributeValueAsString(CoverageAttributeTypes.Assignees,"String_Node_Str"));
    coverageUnit.setWorkProductTaskGuid(artifact.getSoleAttributeValueAsString(CoverageAttributeTypes.WorkProductTaskGuid,"String_Node_Str"));
    coverageUnit.setNamespace(artifact.getSoleAttributeValueAsString(CoverageAttributeTypes.Namespace,"String_Node_Str"));
    coverageUnit.setOrderNumber(artifact.getSoleAttributeValueAsString(CoverageAttributeTypes.Order,"String_Node_Str"));
    coverageUnit.setLocation(artifact.getSoleAttributeValueAsString(CoverageAttributeTypes.Location,"String_Node_Str"));
    for (    Artifact childArt : artifact.getChildren()) {
      if (childArt.isOfType(CoverageArtifactTypes.CoverageUnit,CoverageArtifactTypes.CoverageFolder)) {
        coverageUnit.addCoverageUnit(OseeCoverageUnitStore.get(coverageUnit,childArt,coverageOptionManager,coveragePackage));
      }
    }
  }
}

Fixed version (ground truth):
public void load(CoverageOptionManager coverageOptionManager) throws OseeCoreException {
  coverageUnit.clearCoverageUnits();
  coverageUnit.clearCoverageItems();
  Artifact artifact=getArtifact(false);
  if (artifact != null) {
    for (    String value : artifact.getAttributesToStringList(CoverageAttributeTypes.Item)) {
      CoverageItem item=CoverageItem.createCoverageItem(coverageUnit,value,coverageOptionManager,getTestUnitProvider(coveragePackage,readOnlyTestUnitNames));
      coverageUnit.addCoverageItem(item);
    }
    coverageUnit.setFileContentsProvider(OseeCoverageUnitFileContentsProvider.getInstance(branch));
    coverageUnit.setNotes(artifact.getSoleAttributeValueAsString(CoverageAttributeTypes.Notes,"String_Node_Str"));
    coverageUnit.setFolder(artifact.isOfType(CoverageArtifactTypes.CoverageFolder));
    coverageUnit.setAssignees(artifact.getSoleAttributeValueAsString(CoverageAttributeTypes.Assignees,"String_Node_Str"));
    coverageUnit.setWorkProductTaskGuid(artifact.getSoleAttributeValueAsString(CoverageAttributeTypes.WorkProductTaskGuid,"String_Node_Str"));
    coverageUnit.setNamespace(artifact.getSoleAttributeValueAsString(CoverageAttributeTypes.Namespace,"String_Node_Str"));
    coverageUnit.setOrderNumber(artifact.getSoleAttributeValueAsString(CoverageAttributeTypes.Order,"String_Node_Str"));
    coverageUnit.setLocation(artifact.getSoleAttributeValueAsString(CoverageAttributeTypes.Location,"String_Node_Str"));
    for (    Artifact childArt : artifact.getChildren()) {
      if (childArt.isOfType(CoverageArtifactTypes.CoverageUnit,CoverageArtifactTypes.CoverageFolder)) {
        coverageUnit.addCoverageUnit(OseeCoverageUnitStore.get(coverageUnit,childArt,coverageOptionManager,coveragePackage));
      }
    }
  }
}