Program: 167361
Project: 167361
Buggy source:
protected List<Node> getNodes(){
  ExecutionData executionData=getExecutionData();
  List<FlowStep> flowSteps=flow.getFlowSteps();
  List<FlowStepLink> links=flow.getFlowStepLinks();
  List<Node> list=new ArrayList<Node>();
  for (int i=0; i < 5; i++) {
    if (executionData.steps.size() == flowSteps.size()) {
      break;
    }
 else {
      AppUtils.sleep(200);
      executionData=getExecutionData();
    }
  }
  for (  FlowStep flowStep : flowSteps) {
    Node node=new Node();
    String name=flowStep.getComponent().getName();
    String type=flowStep.getComponent().getType();
    boolean enabled=flowStep.getComponent().getBoolean(AbstractComponentRuntime.ENABLED,true);
    String imageText=String.format("String_Node_Str",UiUtils.getBase64RepresentationOfImageForComponentType(type,context));
    node.setText(imageText);
    node.setName(name);
    node.setEnabled(enabled);
    node.setId(flowStep.getId());
    node.setX(flowStep.getX());
    node.setY(flowStep.getY());
    ExecutionStep executionStep=executionData.findExecutionStep(flowStep.getId());
    if (executionStep != null) {
      node.setEntitiesProcessed(executionStep.getEntitiesProcessed());
      node.setMessagesRecieved(executionStep.getMessagesReceived());
      node.setMessagesSent(executionStep.getMessagesProduced());
      node.setStatus(executionStep.getExecutionStatus().toString());
      node.setInputLabel(Long.toString(executionStep.getMessagesReceived()));
      node.setOutputLabel(Long.toString(executionStep.getMessagesProduced()));
    }
 else {
      showDetails();
      showDiagram.setEnabled(false);
      showDiagram.setDescription("String_Node_Str");
    }
    for (    FlowStepLink link : links) {
      if (link.getSourceStepId().equals(node.getId())) {
        node.getTargetNodeIds().add(link.getTargetStepId());
      }
    }
    list.add(node);
  }
  return list;
}

Fixed version (ground truth):
protected List<Node> getNodes(){
  ExecutionData executionData=getExecutionData();
  List<FlowStep> flowSteps=flow.getFlowSteps();
  List<FlowStepLink> links=flow.getFlowStepLinks();
  List<Node> list=new ArrayList<Node>();
  for (int i=0; i < 5; i++) {
    if (executionData.steps.size() == flowSteps.size()) {
      break;
    }
 else {
      AppUtils.sleep(200);
      executionData=getExecutionData();
    }
  }
  for (  FlowStep flowStep : flowSteps) {
    Node node=new Node();
    String name=flowStep.getComponent().getName();
    String type=flowStep.getComponent().getType();
    boolean enabled=flowStep.getComponent().getBoolean(AbstractComponentRuntime.ENABLED,true);
    String imageText=String.format("String_Node_Str",UiUtils.getBase64RepresentationOfImageForComponentType(type,context));
    node.setText(imageText);
    node.setName(name);
    node.setEnabled(enabled);
    node.setId(flowStep.getId());
    node.setX(flowStep.getX());
    node.setY(flowStep.getY());
    ExecutionStep executionStep=executionData.findExecutionStep(flowStep.getId());
    if (node.isEnabled() && executionStep != null) {
      node.setEntitiesProcessed(executionStep.getEntitiesProcessed());
      node.setMessagesRecieved(executionStep.getMessagesReceived());
      node.setMessagesSent(executionStep.getMessagesProduced());
      node.setStatus(executionStep.getExecutionStatus().toString());
      node.setInputLabel(Long.toString(executionStep.getMessagesReceived()));
      node.setOutputLabel(Long.toString(executionStep.getMessagesProduced()));
    }
 else     if (!node.isEnabled()) {
      node.setInputLabel("String_Node_Str");
      node.setOutputLabel("String_Node_Str");
    }
 else {
      showDetails();
      showDiagram.setEnabled(false);
      showDiagram.setDescription("String_Node_Str");
    }
    for (    FlowStepLink link : links) {
      if (link.getSourceStepId().equals(node.getId())) {
        node.getTargetNodeIds().add(link.getTargetStepId());
      }
    }
    list.add(node);
  }
  return list;
}