Program: 126827
Project: 126827
Buggy source:
private void populateItems(final boolean overwrite){
  setPageComplete(true);
  this.selectedItemRecords.clear();
  nodesBuilder.clear();
  errors.clear();
  updateErrorListViewer();
  IRunnableWithProgress op=new IRunnableWithProgress(){
    @Override public void run(    IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
      ImportExportHandlersManager.getInstance().preImport(resManager);
      List<ItemRecord> items=ImportExportHandlersManager.getInstance().populateImportingItems(resManager,overwrite,monitor);
      nodesBuilder.addItems(items);
    }
  }
;
  try {
    new ProgressMonitorDialog(getShell()).run(true,true,op);
  }
 catch (  Exception e) {
  }
  ItemRecord[] allImportItemRecords=nodesBuilder.getAllImportItemRecords();
  for (  ItemRecord itemRecord : allImportItemRecords) {
    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())) {
          if (itemRecord.getProperty().getVersion().equals(reObject.getVersion())) {
            for (            String error : itemRecord.getErrors()) {
              errors.add("String_Node_Str" + itemRecord.getItemName() + "String_Node_Str"+ error);
            }
          }
 else {
            errors.add(Messages.getString("String_Node_Str",itemRecord.getItemName(),reObject.getVersion()));
          }
        }
 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) {
        for (        String error : itemRecord.getErrors()) {
          errors.add("String_Node_Str" + itemRecord.getItemName() + "String_Node_Str"+ error);
        }
      }
    }
  }
  updateErrorListViewer();
  selectedItemRecords.addAll(Arrays.asList(allImportItemRecords));
  final CheckboxTreeViewer viewer=this.filteredCheckboxTree.getViewer();
  viewer.setInput(nodesBuilder.getProjectNodes());
  viewer.refresh(true);
  viewer.expandAll();
  filteredCheckboxTree.resetCheckedElements();
  checkValidItemRecords();
  if (this.isPageComplete()) {
    checkSelectedItemErrors();
  }
}

Fixed version (ground truth):
private void populateItems(final boolean overwrite){
  setPageComplete(true);
  this.selectedItemRecords.clear();
  nodesBuilder.clear();
  errors.clear();
  updateErrorListViewer();
  if (resManager != null) {
    IRunnableWithProgress op=new IRunnableWithProgress(){
      @Override public void run(      IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
        ImportExportHandlersManager.getInstance().preImport(resManager);
        List<ItemRecord> items=ImportExportHandlersManager.getInstance().populateImportingItems(resManager,overwrite,monitor);
        nodesBuilder.addItems(items);
      }
    }
;
    try {
      new ProgressMonitorDialog(getShell()).run(true,true,op);
    }
 catch (    Exception e) {
    }
  }
  ItemRecord[] allImportItemRecords=nodesBuilder.getAllImportItemRecords();
  for (  ItemRecord itemRecord : allImportItemRecords) {
    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())) {
          if (itemRecord.getProperty().getVersion().equals(reObject.getVersion())) {
            for (            String error : itemRecord.getErrors()) {
              errors.add("String_Node_Str" + itemRecord.getItemName() + "String_Node_Str"+ error);
            }
          }
 else {
            errors.add(Messages.getString("String_Node_Str",itemRecord.getItemName(),reObject.getVersion()));
          }
        }
 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) {
        for (        String error : itemRecord.getErrors()) {
          errors.add("String_Node_Str" + itemRecord.getItemName() + "String_Node_Str"+ error);
        }
      }
    }
  }
  updateErrorListViewer();
  selectedItemRecords.addAll(Arrays.asList(allImportItemRecords));
  final CheckboxTreeViewer viewer=this.filteredCheckboxTree.getViewer();
  viewer.setInput(nodesBuilder.getProjectNodes());
  viewer.refresh(true);
  viewer.expandAll();
  filteredCheckboxTree.resetCheckedElements();
  checkValidItemRecords();
  if (this.isPageComplete()) {
    checkSelectedItemErrors();
  }
}