Program: 167338
Project: 167338
Buggy source:
public Object getBackgroundData(){
  if (statusSelect.isReadOnly()) {
    statusSelect.setReadOnly(false);
    statusSelect.setValue(ANY);
  }
  Object currentSelection=manageNavigator.getCurrentSelection();
  Object currentSelectionParent=manageNavigator.getCurrentSelectionParent();
  if (currentSelection != null) {
    Map<String,Object> params=new HashMap<String,Object>();
    if (currentSelection.equals(ManageNavigator.CURRENTLY_RUNNING)) {
      statusSelect.setValue(ExecutionStatus.RUNNING.name());
      statusSelect.setReadOnly(true);
    }
 else     if (currentSelection instanceof Agent) {
      params.put("String_Node_Str",((Agent)currentSelection).getId());
    }
 else     if (currentSelection instanceof AgentName) {
      params.put("String_Node_Str",((AgentName)currentSelection).getId());
    }
 else     if (currentSelection instanceof FlowName) {
      params.put("String_Node_Str",((FlowName)currentSelection).getId());
    }
 else     if (currentSelection instanceof AgentDeployment) {
      params.put("String_Node_Str",((AgentDeployment)currentSelection).getId());
    }
 else     if (currentSelection instanceof AgentDeploymentSummary) {
      params.put("String_Node_Str",((AgentDeploymentSummary)currentSelection).getId());
    }
    if (currentSelectionParent instanceof Agent) {
      params.put("String_Node_Str",((Agent)currentSelectionParent).getId());
    }
 else     if (currentSelectionParent instanceof AgentName) {
      params.put("String_Node_Str",((AgentName)currentSelectionParent).getId());
    }
    if (!statusSelect.getValue().equals(ANY)) {
      params.put("String_Node_Str",statusSelect.getValue());
    }
    if (params.size() > 0) {
      return context.getExecutionService().findExecutions(params,limit);
    }
  }
  return null;
}

Fixed version (ground truth):
public Object getBackgroundData(){
  if (statusSelect.isReadOnly()) {
    statusSelect.setReadOnly(false);
    statusSelect.setValue(ANY);
  }
  Object currentSelection=manageNavigator.getCurrentSelection();
  Object currentSelectionParent=manageNavigator.getCurrentSelectionParent();
  if (currentSelection != null) {
    Map<String,Object> params=new HashMap<String,Object>();
    if (currentSelection.equals(ManageNavigator.CURRENTLY_RUNNING)) {
      statusSelect.setValue(ExecutionStatus.RUNNING.name());
      statusSelect.setReadOnly(true);
    }
 else     if (currentSelection.equals(ManageNavigator.IN_ERROR)) {
      statusSelect.setValue(ExecutionStatus.ERROR.name());
      statusSelect.setReadOnly(true);
    }
 else     if (currentSelection instanceof Agent) {
      params.put("String_Node_Str",((Agent)currentSelection).getId());
    }
 else     if (currentSelection instanceof AgentName) {
      params.put("String_Node_Str",((AgentName)currentSelection).getId());
    }
 else     if (currentSelection instanceof FlowName) {
      params.put("String_Node_Str",((FlowName)currentSelection).getId());
    }
 else     if (currentSelection instanceof AgentDeployment) {
      params.put("String_Node_Str",((AgentDeployment)currentSelection).getId());
    }
 else     if (currentSelection instanceof AgentDeploymentSummary) {
      params.put("String_Node_Str",((AgentDeploymentSummary)currentSelection).getId());
    }
    if (currentSelectionParent instanceof Agent) {
      params.put("String_Node_Str",((Agent)currentSelectionParent).getId());
    }
 else     if (currentSelectionParent instanceof AgentName) {
      params.put("String_Node_Str",((AgentName)currentSelectionParent).getId());
    }
    if (!statusSelect.getValue().equals(ANY)) {
      params.put("String_Node_Str",statusSelect.getValue());
    }
    if (params.size() > 0) {
      return context.getExecutionService().findExecutions(params,limit);
    }
  }
  return null;
}