Program: 96676
Project: 96676
Buggy source:
public static boolean promptChangeFeatureGroup(final Collection<? extends AbstractWorkflowArtifact> awas) throws OseeCoreException {
  SprintItems items=new SprintItems(awas);
  if (items.isNoBacklogDetected()) {
    AWorkbench.popup("String_Node_Str");
    return false;
  }
  if (items.isMultipleBacklogsDetected()) {
    AWorkbench.popup("String_Node_Str");
    return false;
  }
  AgileEndpointApi agileEp=AtsClientService.getAgileEndpoint();
  List<JaxAgileFeatureGroup> activeFeatureGroups=new ArrayList<>();
  long teamUuid=items.getCommonBacklog().getTeamUuid();
  try {
    for (    JaxAgileFeatureGroup feature : agileEp.getFeatureGroups(items.getCommonBacklog().getTeamUuid())) {
      if (feature.isActive()) {
        activeFeatureGroups.add(feature);
      }
    }
  }
 catch (  Exception ex) {
    OseeLog.log(Activator.class,OseeLevel.SEVERE_POPUP,ex);
    return false;
  }
  FilteredCheckboxTreeDialog dialog=new FilteredCheckboxTreeDialog("String_Node_Str","String_Node_Str",new ArrayTreeContentProvider(),new StringLabelProvider(),new StringNameComparator());
  dialog.setInput(activeFeatureGroups);
  Collection<IAgileFeatureGroup> selectedFeatureGroups=getSelectedFeatureGroups(awas);
  if (!selectedFeatureGroups.isEmpty()) {
    dialog.setInitialSelections(selectedFeatureGroups);
  }
  dialog.setShowSelectButtons(true);
  int result=dialog.open();
  if (result != 0) {
    return false;
  }
  JaxAgileItem updateItem=new JaxAgileItem();
  if (dialog.getResult().length == 0) {
    updateItem.setRemoveFeatures(true);
  }
 else {
    updateItem.setSetFeatures(true);
    for (    Object obj : dialog.getResult()) {
      updateItem.getFeatures().add(((JaxAgileFeatureGroup)obj).getUuid());
    }
  }
  for (  AbstractWorkflowArtifact awa : awas) {
    updateItem.getUuids().add(Long.valueOf(awa.getArtId()));
  }
  try {
    agileEp.updateItem(teamUuid,updateItem);
    ArtifactQuery.reloadArtifacts(awas);
  }
 catch (  Exception ex) {
    OseeLog.log(Activator.class,OseeLevel.SEVERE_POPUP,ex);
  }
  return true;
}

Fixed version (ground truth):
public static boolean promptChangeFeatureGroup(final Collection<? extends AbstractWorkflowArtifact> awas) throws OseeCoreException {
  SprintItems items=new SprintItems(awas);
  if (items.isNoBacklogDetected()) {
    AWorkbench.popup("String_Node_Str");
    return false;
  }
  if (items.isMultipleBacklogsDetected()) {
    AWorkbench.popup("String_Node_Str");
    return false;
  }
  AgileEndpointApi agileEp=AtsClientService.getAgileEndpoint();
  List<JaxAgileFeatureGroup> activeFeatureGroups=new ArrayList<>();
  long teamUuid=items.getCommonBacklog().getTeamUuid();
  try {
    for (    JaxAgileFeatureGroup feature : agileEp.getFeatureGroups(items.getCommonBacklog().getTeamUuid())) {
      if (feature.isActive()) {
        activeFeatureGroups.add(feature);
      }
    }
  }
 catch (  Exception ex) {
    OseeLog.log(Activator.class,OseeLevel.SEVERE_POPUP,ex);
    return false;
  }
  FilteredCheckboxTreeDialog dialog=new FilteredCheckboxTreeDialog("String_Node_Str","String_Node_Str",new ArrayTreeContentProvider(),new StringLabelProvider(),new StringNameComparator());
  dialog.setInput(activeFeatureGroups);
  Collection<JaxAgileFeatureGroup> selectedFeatureGroups=getSelectedFeatureGroups(awas);
  if (!selectedFeatureGroups.isEmpty()) {
    dialog.setInitialSelections(selectedFeatureGroups);
  }
  dialog.setShowSelectButtons(true);
  int result=dialog.open();
  if (result != 0) {
    return false;
  }
  JaxAgileItem updateItem=new JaxAgileItem();
  if (dialog.getResult().length == 0) {
    updateItem.setRemoveFeatures(true);
  }
 else {
    updateItem.setSetFeatures(true);
    for (    Object obj : dialog.getResult()) {
      updateItem.getFeatures().add(((JaxAgileFeatureGroup)obj).getUuid());
    }
  }
  for (  AbstractWorkflowArtifact awa : awas) {
    updateItem.getUuids().add(Long.valueOf(awa.getArtId()));
  }
  try {
    agileEp.updateItem(teamUuid,updateItem);
    ArtifactQuery.reloadArtifacts(awas);
  }
 catch (  Exception ex) {
    OseeLog.log(Activator.class,OseeLevel.SEVERE_POPUP,ex);
  }
  return true;
}