Program: 96925
Project: 96925
Buggy source:
@Override public void widgetSelected(SelectionEvent e){
  if (selectOthers.contains(combo.getSelected())) {
    FilteredTreeDialog dialog=new FilteredTreeDialog("String_Node_Str","String_Node_Str",new ArrayTreeContentProvider(),new WorkPacakgeLabelProvider(),new StringNameSorter());
    dialog.setMultiSelect(false);
    if (combo.getSelected().equals(selectOtherActive)) {
      dialog.setInput(AtsClientService.get().getQueryService().createQuery(AtsArtifactTypes.WorkPackage).andActive(true).getItems());
    }
 else     if (combo.getSelected().equals(selectOther)) {
      dialog.setInput(AtsClientService.get().getQueryService().createQuery(AtsArtifactTypes.WorkPackage).getItems());
    }
    if (dialog.open() == 0) {
      IAtsWorkPackage selectedWorkPackage=dialog.getSelectedFirst();
      IAtsInsertionActivity insertionActivity=AtsClientService.get().getProgramService().getInsertionActivity(selectedWorkPackage);
      IAtsInsertion insertion=AtsClientService.get().getProgramService().getInsertion(insertionActivity);
      IAtsProgram program=AtsClientService.get().getProgramService().getProgram(insertion);
      programWidget.getWidget().setInput(Arrays.asList(AbstractXComboViewerSearchWidget.CLEAR,program));
      programWidget.getWidget().setSelected(Arrays.asList(program));
      insertionWidget.getWidget().setInput(Arrays.asList(AbstractXComboViewerSearchWidget.CLEAR,insertion));
      insertionWidget.getWidget().setSelected(Arrays.asList(insertion));
      insertionActivityWidget.getWidget().setInput(Arrays.asList(AbstractXComboViewerSearchWidget.CLEAR,insertionActivity));
      insertionActivityWidget.getWidget().setSelected(Arrays.asList(insertionActivity));
      combo.setSelected(Arrays.asList(selectedWorkPackage));
    }
  }
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  if (selectOthers.contains(combo.getSelected())) {
    FilteredTreeDialog dialog=new FilteredTreeDialog("String_Node_Str","String_Node_Str",new ArrayTreeContentProvider(),new WorkPackageLabelProvider(),new StringNameSorter());
    dialog.setMultiSelect(false);
    if (combo.getSelected().equals(selectOtherActive)) {
      dialog.setInput(AtsClientService.get().getQueryService().createQuery(AtsArtifactTypes.WorkPackage).andActive(true).getItems());
    }
 else     if (combo.getSelected().equals(selectOther)) {
      dialog.setInput(AtsClientService.get().getQueryService().createQuery(AtsArtifactTypes.WorkPackage).getItems());
    }
    if (dialog.open() == 0) {
      IAtsWorkPackage selectedWorkPackage=dialog.getSelectedFirst();
      IAtsInsertionActivity insertionActivity=AtsClientService.get().getProgramService().getInsertionActivity(selectedWorkPackage);
      IAtsInsertion insertion=AtsClientService.get().getProgramService().getInsertion(insertionActivity);
      IAtsProgram program=AtsClientService.get().getProgramService().getProgram(insertion);
      programWidget.getWidget().setInput(Arrays.asList(AbstractXComboViewerSearchWidget.CLEAR,program));
      programWidget.getWidget().setSelected(Arrays.asList(program));
      insertionWidget.getWidget().setInput(Arrays.asList(AbstractXComboViewerSearchWidget.CLEAR,insertion));
      insertionWidget.getWidget().setSelected(Arrays.asList(insertion));
      insertionActivityWidget.getWidget().setInput(Arrays.asList(AbstractXComboViewerSearchWidget.CLEAR,insertionActivity));
      insertionActivityWidget.getWidget().setSelected(Arrays.asList(insertionActivity));
      combo.setSelected(Arrays.asList(selectedWorkPackage));
    }
  }
}