Program: 137463
Project: 137463
Buggy source:
/** 
 * check that directory exist and issue an error message if not. <br> check that the folder is a data quality repository or issue an error.<br> check that anything is check in the tree or issue an error.<br>
 */
protected void checkforErrors(){
  List<String> dErrors=new ArrayList<String>();
  if (repositoryTree.getTree().getItems().length == 0) {
    dErrors.add(Messages.getString("String_Node_Str"));
  }
  if (repositoryTree.getCheckedElements().length == 0) {
    dErrors.add(Messages.getString("String_Node_Str"));
  }
  dErrors.addAll(writer.check());
  ItemRecord[] elements=getElements();
  for (  ItemRecord record : elements) {
    for (    File depFile : record.getDependencyMap().keySet()) {
      ModelElement element=record.getDependencyMap().get(depFile);
      ItemRecord findRecord=ItemRecord.findRecord(depFile);
      boolean isJrxmlDepFile=depFile.getName().endsWith(FactoriesUtil.JRXML);
      String dptLabel=element != null && !isJrxmlDepFile && PropertyHelper.getProperty(element) != null ? PropertyHelper.getProperty(element).getDisplayName() : depFile.getName();
      if (findRecord == null || !repositoryTree.getChecked(findRecord)) {
        if (element instanceof IndicatorDefinition) {
          String uuid=ResourceHelper.getUUID(element);
          if (IndicatorDefinitionFileHelper.isTechnialIndicator(uuid)) {
            continue;
          }
        }
        dErrors.add("String_Node_Str" + record.getName() + "String_Node_Str"+ dptLabel);
      }
    }
  }
  if (!dErrors.isEmpty()) {
    setErrorMessage(dErrors.get(0));
  }
 else {
    setErrorMessage(null);
  }
  updatePageStatus();
}

Fixed version (ground truth):
/** 
 * check that directory exist and issue an error message if not. <br> check that the folder is a data quality repository or issue an error.<br> check that anything is check in the tree or issue an error.<br>
 */
protected void checkforErrors(){
  List<String> dErrors=new ArrayList<String>();
  if (repositoryTree.getTree().getItems().length == 0) {
    dErrors.add(Messages.getString("String_Node_Str"));
  }
  if (repositoryTree.getCheckedElements().length == 0) {
    dErrors.add(Messages.getString("String_Node_Str"));
  }
  dErrors.addAll(writer.check());
  ItemRecord[] elements=getElements();
  for (  ItemRecord record : elements) {
    dErrors.addAll(record.getErrors());
    for (    File depFile : record.getDependencyMap().keySet()) {
      ModelElement element=record.getDependencyMap().get(depFile);
      ItemRecord findRecord=ItemRecord.findRecord(depFile);
      boolean isJrxmlDepFile=depFile.getName().endsWith(FactoriesUtil.JRXML);
      String dptLabel=element != null && !isJrxmlDepFile && PropertyHelper.getProperty(element) != null ? PropertyHelper.getProperty(element).getDisplayName() : depFile.getName();
      if (findRecord == null || !repositoryTree.getChecked(findRecord)) {
        if (element instanceof IndicatorDefinition) {
          String uuid=ResourceHelper.getUUID(element);
          if (IndicatorDefinitionFileHelper.isTechnialIndicator(uuid)) {
            continue;
          }
        }
        dErrors.add("String_Node_Str" + record.getName() + "String_Node_Str"+ dptLabel);
      }
    }
  }
  if (!dErrors.isEmpty()) {
    setErrorMessage(dErrors.get(0));
  }
 else {
    setErrorMessage(null);
  }
  updatePageStatus();
}