Program: 147989
Project: 147989
Buggy source:
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask("String_Node_Str",lineItems.size());
  XtentisPort port=null;
  try {
    port=Util.getPort(getXObject());
  }
 catch (  Exception e) {
    log.error(e.getMessage(),e);
    MessageDialog.openError(shell,"String_Node_Str","String_Node_Str" + e.getLocalizedMessage());
  }
  String results="String_Node_Str";
  for (Iterator<WSRoutingOrderV2> iter=lineItems.iterator(); iter.hasNext(); ) {
    WSRoutingOrderV2 lineItem=iter.next();
    monitor.subTask("String_Node_Str" + lineItem.getName());
    if (monitor.isCanceled()) {
      MessageDialog.openWarning(this.parentShell,"String_Node_Str","String_Node_Str" + lineItem.getName() + "String_Node_Str"+ "String_Node_Str");
      return;
    }
    try {
      if (synchronously) {
        WSString wsResult=port.executeRoutingOrderV2Synchronously(new WSExecuteRoutingOrderV2Synchronously(new WSRoutingOrderV2PK(lineItem.getName(),lineItem.getStatus())));
        if (wsResult.getValue() != null)         results+=lineItem.getName() + "String_Node_Str" + wsResult.getValue();
      }
 else {
        port.executeRoutingOrderV2Asynchronously(new WSExecuteRoutingOrderV2Asynchronously(new WSRoutingOrderV2PK(lineItem.getName(),lineItem.getStatus())));
      }
      monitor.worked(1);
    }
 catch (    Exception e) {
      log.error(e.getMessage(),e);
      MessageDialog.openError(shell,"String_Node_Str","String_Node_Str" + e.getLocalizedMessage());
    }
  }
  monitor.done();
  MessageDialog.openInformation(shell,"String_Node_Str",lineItems.size() + "String_Node_Str" + ("String_Node_Str".equals(results) ? "String_Node_Str" : "String_Node_Str" + results));
}

Fixed version (ground truth):
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask("String_Node_Str",lineItems.size());
  XtentisPort port=null;
  try {
    port=getPort();
  }
 catch (  Exception e) {
    log.error(e.getMessage(),e);
    MessageDialog.openError(shell,"String_Node_Str","String_Node_Str" + e.getLocalizedMessage());
  }
  String results="String_Node_Str";
  for (Iterator<WSRoutingOrderV2> iter=lineItems.iterator(); iter.hasNext(); ) {
    WSRoutingOrderV2 lineItem=iter.next();
    monitor.subTask("String_Node_Str" + lineItem.getName());
    if (monitor.isCanceled()) {
      MessageDialog.openWarning(this.parentShell,"String_Node_Str","String_Node_Str" + lineItem.getName() + "String_Node_Str"+ "String_Node_Str");
      return;
    }
    try {
      if (synchronously) {
        WSString wsResult=port.executeRoutingOrderV2Synchronously(new WSExecuteRoutingOrderV2Synchronously(new WSRoutingOrderV2PK(lineItem.getName(),lineItem.getStatus())));
        if (wsResult.getValue() != null)         results+=lineItem.getName() + "String_Node_Str" + wsResult.getValue();
      }
 else {
        port.executeRoutingOrderV2Asynchronously(new WSExecuteRoutingOrderV2Asynchronously(new WSRoutingOrderV2PK(lineItem.getName(),lineItem.getStatus())));
      }
      monitor.worked(1);
    }
 catch (    Exception e) {
      log.error(e.getMessage(),e);
      MessageDialog.openError(shell,"String_Node_Str","String_Node_Str" + e.getLocalizedMessage());
    }
  }
  monitor.done();
  MessageDialog.openInformation(shell,"String_Node_Str",lineItems.size() + "String_Node_Str" + ("String_Node_Str".equals(results) ? "String_Node_Str" : "String_Node_Str" + results));
}