Program: 147616
Project: 147616
Buggy source:
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask(Messages.RoutingEngineV2BrowserMainPage_ExecutingRoutingOrders,lineItems.size());
  TMDMService service=null;
  try {
    service=Util.getMDMService(xObject);
  }
 catch (  Exception e) {
    log.error(e.getMessage(),e);
    MessageDialog.openError(shell,Messages.RoutingEngineV2BrowserMainPage_ErrorExecuting,Messages.bind(Messages.RoutingEngineV2BrowserMainPage_ErrorMsg5,e.getLocalizedMessage()));
  }
  String results=TEXT;
  for (  WSRoutingOrderV2 lineItem : lineItems) {
    monitor.subTask(Messages.RoutingEngineV2BrowserMainPage_ExecutingRoutingOrder + lineItem.getName());
    if (monitor.isCanceled()) {
      MessageDialog.openWarning(this.parentShell,Messages.RoutingEngineV2BrowserMainPage_WarningTitle,Messages.RoutingEngineV2BrowserMainPage_WraningMsg + lineItem.getName() + Messages.RoutingEngineV2BrowserMainPage_WraningMsgA+ Messages.RoutingEngineV2BrowserMainPage_WraningMsgB);
      return;
    }
    try {
      if (synchronously) {
        WSString wsResult=service.executeRoutingOrderV2Synchronously(new WSExecuteRoutingOrderV2Synchronously(new WSRoutingOrderV2PK(lineItem.getName(),lineItem.getStatus())));
        if (wsResult.getValue() != null) {
          results+=lineItem.getName() + "String_Node_Str" + wsResult.getValue();
        }
      }
 else {
        service.executeRoutingOrderV2Asynchronously(new WSExecuteRoutingOrderV2Asynchronously(new WSRoutingOrderV2PK(lineItem.getName(),lineItem.getStatus())));
      }
      monitor.worked(1);
    }
 catch (    Exception e) {
      log.error(e.getMessage(),e);
      if (!Util.handleConnectionException(shell,e,Messages.RoutingEngineV2BrowserMainPage_ErrorExecuting)) {
        MessageDialog.openError(shell,Messages.RoutingEngineV2BrowserMainPage_ErrorExecuting,Messages.bind(Messages.RoutingEngineV2BrowserMainPage_ErrorMsg6,e.getLocalizedMessage()));
      }
    }
  }
  monitor.done();
  MessageDialog.openInformation(shell,Messages.RoutingEngineV2BrowserMainPage_InfoTitle,lineItems.size() + Messages.RoutingEngineV2BrowserMainPage_InfoContent + (TEXT.equals(results) ? TEXT : "String_Node_Str" + results));
}

Fixed version (ground truth):
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask(Messages.RoutingEngineV2BrowserMainPage_ExecutingRoutingOrders,lineItems.size());
  String results=TEXT;
  if (service != null) {
    for (    WSRoutingOrderV2 lineItem : lineItems) {
      monitor.subTask(Messages.RoutingEngineV2BrowserMainPage_ExecutingRoutingOrder + lineItem.getName());
      if (monitor.isCanceled()) {
        MessageDialog.openWarning(this.parentShell,Messages.RoutingEngineV2BrowserMainPage_WarningTitle,Messages.RoutingEngineV2BrowserMainPage_WraningMsg + lineItem.getName() + Messages.RoutingEngineV2BrowserMainPage_WraningMsgA+ Messages.RoutingEngineV2BrowserMainPage_WraningMsgB);
        return;
      }
      try {
        if (synchronously) {
          WSString wsResult=service.executeRoutingOrderV2Synchronously(new WSExecuteRoutingOrderV2Synchronously(new WSRoutingOrderV2PK(lineItem.getName(),lineItem.getStatus())));
          if (wsResult.getValue() != null) {
            results+=lineItem.getName() + "String_Node_Str" + wsResult.getValue();
          }
        }
 else {
          service.executeRoutingOrderV2Asynchronously(new WSExecuteRoutingOrderV2Asynchronously(new WSRoutingOrderV2PK(lineItem.getName(),lineItem.getStatus())));
        }
        monitor.worked(1);
      }
 catch (      Exception e) {
        log.error(e.getMessage(),e);
        if (!Util.handleConnectionException(shell,e,Messages.RoutingEngineV2BrowserMainPage_ErrorExecuting)) {
          MessageDialog.openError(shell,Messages.RoutingEngineV2BrowserMainPage_ErrorExecuting,Messages.bind(Messages.RoutingEngineV2BrowserMainPage_ErrorMsg6,e.getLocalizedMessage()));
        }
      }
    }
  }
  monitor.done();
  MessageDialog.openInformation(shell,Messages.RoutingEngineV2BrowserMainPage_InfoTitle,lineItems.size() + Messages.RoutingEngineV2BrowserMainPage_InfoContent + (TEXT.equals(results) ? TEXT : "String_Node_Str" + results));
}