Program: 168178
Project: 168178
Buggy source:
private void rHandleAdd(Shell shell){
  processElementSelectionDialog(shell);
  representativeList=new LinkedHashSet<String>();
  Job listRepresentatives=new Job("String_Node_Str"){
    String selectedCongress="String_Node_Str";
    @Override protected IStatus run(    IProgressMonitor monitor){
      representativeList.clear();
      Display.getDefault().syncExec(new Runnable(){
        @Override public void run(){
          selectedCongress=congresses[rCmbCongress.getSelectionIndex()];
        }
      }
);
      try {
        ArrayList<String> temp=new ArrayList<String>();
        temp.add(0,"String_Node_Str");
        temp.add(1,"String_Node_Str");
        temp.add(2,"String_Node_Str");
        temp.add(3,"String_Node_Str");
        if (selectedCongress.equals("String_Node_Str")) {
          for (          String s : allRepresentatives)           temp.add(s);
        }
 else {
          if (previousSelectedCongress.isEmpty() || !previousSelectedCongress.equals(selectedCongress)) {
            availableRepresentatives=AvailableRecords.getRepresentatives(selectedCongress);
            Display.getDefault().asyncExec(new Runnable(){
              @Override public void run(){
                if (selectedRepresentatives != null)                 selectedRepresentatives.clear();
                representativeTable.removeAll();
              }
            }
);
          }
          for (          String s : availableRepresentatives)           temp.add(s);
        }
        representativeList.addAll(temp);
        if (selectedRepresentatives != null)         representativeList.removeAll(selectedRepresentatives);
        Display.getDefault().asyncExec(new Runnable(){
          @Override public void run(){
            listDialog.refresh(representativeList.toArray());
          }
        }
);
        previousSelectedCongress=selectedCongress;
      }
 catch (      final IOException exception) {
        ConsoleView.printlInConsole(exception.toString());
        Display.getDefault().syncExec(new Runnable(){
          @Override public void run(){
            ErrorDialog.openError(Display.getDefault().getActiveShell(),"String_Node_Str","String_Node_Str",new Status(IStatus.ERROR,CommonUiActivator.PLUGIN_ID,"String_Node_Str"));
          }
        }
);
      }
      return Status.OK_STATUS;
    }
  }
;
  listRepresentatives.schedule();
  representativeList.add("String_Node_Str");
  listDialog.setElements(representativeList.toArray());
  listDialog.setMultipleSelection(true);
  if (listDialog.open() == Window.OK) {
    updateRepresentativeTable(listDialog.getResult());
  }
}

Fixed version (ground truth):
private void rHandleAdd(Shell shell){
  processElementSelectionDialog(shell);
  representativeList=new LinkedHashSet<String>();
  Job listRepresentatives=new Job("String_Node_Str"){
    String selectedCongress="String_Node_Str";
    @Override protected IStatus run(    IProgressMonitor monitor){
      representativeList.clear();
      Display.getDefault().syncExec(new Runnable(){
        @Override public void run(){
          selectedCongress=congresses[rCmbCongress.getSelectionIndex()];
        }
      }
);
      try {
        ArrayList<String> temp=new ArrayList<String>();
        temp.add(0,"String_Node_Str");
        temp.add(1,"String_Node_Str");
        temp.add(2,"String_Node_Str");
        temp.add(3,"String_Node_Str");
        if (selectedCongress.equals("String_Node_Str")) {
          for (          String s : allRepresentatives)           temp.add(s);
        }
 else {
          if (previousSelectedCongress.isEmpty() || !previousSelectedCongress.equals(selectedCongress) || null == availableRepresentatives || availableRepresentatives.length == 0) {
            availableRepresentatives=AvailableRecords.getRepresentatives(selectedCongress);
            Display.getDefault().asyncExec(new Runnable(){
              @Override public void run(){
                if (selectedRepresentatives != null)                 selectedRepresentatives.clear();
                representativeTable.removeAll();
              }
            }
);
          }
          for (          String s : availableRepresentatives)           temp.add(s);
        }
        representativeList.addAll(temp);
        if (selectedRepresentatives != null)         representativeList.removeAll(selectedRepresentatives);
        Display.getDefault().asyncExec(new Runnable(){
          @Override public void run(){
            listDialog.refresh(representativeList.toArray());
          }
        }
);
        previousSelectedCongress=selectedCongress;
      }
 catch (      final IOException exception) {
        ConsoleView.printlInConsole(exception.toString());
        Display.getDefault().syncExec(new Runnable(){
          @Override public void run(){
            ErrorDialog.openError(Display.getDefault().getActiveShell(),"String_Node_Str","String_Node_Str",new Status(IStatus.ERROR,CommonUiActivator.PLUGIN_ID,"String_Node_Str"));
          }
        }
);
      }
      return Status.OK_STATUS;
    }
  }
;
  listRepresentatives.schedule();
  representativeList.add("String_Node_Str");
  listDialog.setElements(representativeList.toArray());
  listDialog.setMultipleSelection(true);
  if (listDialog.open() == Window.OK) {
    updateRepresentativeTable(listDialog.getResult());
  }
}