Program: 120127
Project: 120127
Buggy source:
/** 
 * DOC hcw Comment method "populateItems".
 */
private void populateItems(){
  selectedItems.clear();
  final Collection<ItemRecord> items=new ArrayList<ItemRecord>();
  IRunnableWithProgress op=new IRunnableWithProgress(){
    @Override public void run(    IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
      repositoryUtil.clearAllData();
      items.addAll(totalItemRecords=repositoryUtil.populateItems(manager,overwrite,monitor));
    }
  }
;
  try {
    new ProgressMonitorDialog(getShell()).run(true,true,op);
  }
 catch (  Exception e) {
  }
  errors.clear();
  for (  ItemRecord itemRecord : items) {
    if (itemRecord.getExistingItemWithSameId() != null && itemRecord.getExistingItemWithSameId() instanceof RepositoryViewObject) {
      RepositoryViewObject reObject=(RepositoryViewObject)itemRecord.getExistingItemWithSameId();
      if (itemRecord.getProperty() != null && reObject != null) {
        if (itemRecord.getProperty().getId().equals(reObject.getId()) && itemRecord.getProperty().getLabel().equals(reObject.getLabel())) {
          for (          String error : itemRecord.getErrors()) {
            errors.add("String_Node_Str" + itemRecord.getItemName() + "String_Node_Str"+ error);
          }
        }
 else {
          ERepositoryStatus status=reObject.getRepositoryStatus();
          if (status == ERepositoryStatus.LOCK_BY_OTHER || status == ERepositoryStatus.LOCK_BY_USER) {
            for (            String error : itemRecord.getErrors()) {
              errors.add("String_Node_Str" + itemRecord.getItemName() + "String_Node_Str"+ error);
            }
          }
        }
      }
    }
 else {
      if (itemRecord.getProperty() != null) {
        Item item=itemRecord.getProperty().getItem();
        if (item != null && (item instanceof JobDocumentationItem || item instanceof JobletDocumentationItem)) {
          continue;
        }
        for (        String error : itemRecord.getErrors()) {
          errors.add("String_Node_Str" + itemRecord.getItemName() + "String_Node_Str"+ error);
        }
      }
    }
  }
  if (errorsList != null) {
    errorsList.refresh();
  }
  selectedItems.addAll(items);
  checkTreeViewer.refresh(true);
  checkTreeViewer.expandAll();
  filteredCheckboxTree.resetCheckedElements();
  checkValidItems();
  updateFinishStatus();
}

Fixed version (ground truth):
/** 
 * DOC hcw Comment method "populateItems".
 */
private void populateItems(){
  selectedItems.clear();
  final Collection<ItemRecord> items=new ArrayList<ItemRecord>();
  IRunnableWithProgress op=new IRunnableWithProgress(){
    @Override public void run(    IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
      repositoryUtil.clearAllData();
      items.addAll(totalItemRecords=repositoryUtil.populateItems(manager,overwrite,monitor));
    }
  }
;
  try {
    new ProgressMonitorDialog(getShell()).run(true,true,op);
  }
 catch (  Exception e) {
  }
  errors.clear();
  for (  ItemRecord itemRecord : items) {
    if (itemRecord.getExistingItemWithSameId() != null && itemRecord.getExistingItemWithSameId() instanceof RepositoryViewObject) {
      RepositoryViewObject reObject=(RepositoryViewObject)itemRecord.getExistingItemWithSameId();
      if (itemRecord.getProperty() != null && reObject != null) {
        if (itemRecord.getProperty().getId().equals(reObject.getId()) && itemRecord.getProperty().getLabel().equals(reObject.getLabel()) && itemRecord.getProperty().getVersion().equals(reObject.getVersion())) {
          for (          String error : itemRecord.getErrors()) {
            errors.add("String_Node_Str" + itemRecord.getItemName() + "String_Node_Str"+ error);
          }
        }
 else {
          ERepositoryStatus status=reObject.getRepositoryStatus();
          if (status == ERepositoryStatus.LOCK_BY_OTHER || status == ERepositoryStatus.LOCK_BY_USER) {
            for (            String error : itemRecord.getErrors()) {
              errors.add("String_Node_Str" + itemRecord.getItemName() + "String_Node_Str"+ error);
            }
          }
        }
      }
    }
 else {
      if (itemRecord.getProperty() != null) {
        Item item=itemRecord.getProperty().getItem();
        if (item != null && (item instanceof JobDocumentationItem || item instanceof JobletDocumentationItem)) {
          continue;
        }
        for (        String error : itemRecord.getErrors()) {
          errors.add("String_Node_Str" + itemRecord.getItemName() + "String_Node_Str"+ error);
        }
      }
    }
  }
  if (errorsList != null) {
    errorsList.refresh();
  }
  selectedItems.addAll(items);
  checkTreeViewer.refresh(true);
  checkTreeViewer.expandAll();
  filteredCheckboxTree.resetCheckedElements();
  checkValidItems();
  updateFinishStatus();
}