Program: 95814
Project: 95814
Buggy source:
/** 
 * {@inheritDoc}
 */
public Object executeImpl(ExecutionEvent event){
  Object testSuiteToStartObj=null;
  Object runningAutObj=null;
  ITestSuitePO testSuiteToStart=null;
  AutIdentifier runningAut=null;
  try {
    testSuiteToStartObj=event.getObjectParameterForExecution(TEST_SUITE_TO_START);
    runningAutObj=event.getObjectParameterForExecution(RUNNING_AUT);
  }
 catch (  ExecutionException ee) {
  }
  State lastStartedTestSuiteState=event.getCommand().getState(LAST_STARTED_TEST_SUITE);
  State lastTestedRunningAutState=event.getCommand().getState(LAST_TESTED_RUNNING_AUT);
  if (testSuiteToStartObj instanceof ITestSuitePO && runningAutObj instanceof AutIdentifier) {
    testSuiteToStart=(ITestSuitePO)testSuiteToStartObj;
    runningAut=(AutIdentifier)runningAutObj;
  }
 else {
    if (lastStartedTestSuiteState != null && lastTestedRunningAutState != null) {
      Object testSuiteStateValue=lastStartedTestSuiteState.getValue();
      Object runningAutStateValue=lastTestedRunningAutState.getValue();
      if (testSuiteStateValue instanceof String && runningAutStateValue instanceof AutIdentifier) {
        String testSuiteGUIDtoStart=(String)testSuiteStateValue;
        List<ITestSuitePO> listOfTS=TestSuiteBP.getListOfTestSuites();
        for (        ITestSuitePO ts : listOfTS) {
          if (testSuiteGUIDtoStart.equals(ts.getGuid())) {
            testSuiteToStart=ts;
            break;
          }
        }
        runningAut=(AutIdentifier)runningAutStateValue;
      }
    }
  }
  if (testSuiteToStart != null && runningAut != null && initTestExecution()) {
    final boolean autoScreenshots=Plugin.getDefault().getPreferenceStore().getBoolean(Constants.AUTO_SCREENSHOT_KEY);
    ChooseTestSuiteBP.getInstance().runTestSuite(testSuiteToStart,runningAut,autoScreenshots);
    if (lastStartedTestSuiteState != null && lastTestedRunningAutState != null) {
      lastStartedTestSuiteState.setValue(testSuiteToStart.getGuid());
      lastTestedRunningAutState.setValue(runningAut);
    }
  }
  return null;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public Object executeImpl(final ExecutionEvent event){
  Object testSuiteToStartObj=null;
  Object runningAutObj=null;
  ITestSuitePO testSuiteToStart=null;
  AutIdentifier runningAut=null;
  try {
    testSuiteToStartObj=event.getObjectParameterForExecution(TEST_SUITE_TO_START);
    runningAutObj=event.getObjectParameterForExecution(RUNNING_AUT);
  }
 catch (  ExecutionException ee) {
  }
  State lastStartedTestSuiteState=event.getCommand().getState(LAST_STARTED_TEST_SUITE);
  State lastTestedRunningAutState=event.getCommand().getState(LAST_TESTED_RUNNING_AUT);
  if (testSuiteToStartObj instanceof ITestSuitePO && runningAutObj instanceof AutIdentifier) {
    testSuiteToStart=(ITestSuitePO)testSuiteToStartObj;
    runningAut=(AutIdentifier)runningAutObj;
  }
 else {
    if (lastStartedTestSuiteState != null && lastTestedRunningAutState != null) {
      Object testSuiteStateValue=lastStartedTestSuiteState.getValue();
      Object runningAutStateValue=lastTestedRunningAutState.getValue();
      if (testSuiteStateValue instanceof String && runningAutStateValue instanceof AutIdentifier) {
        String testSuiteGUIDtoStart=(String)testSuiteStateValue;
        List<ITestSuitePO> listOfTS=TestSuiteBP.getListOfTestSuites();
        for (        ITestSuitePO ts : listOfTS) {
          if (testSuiteGUIDtoStart.equals(ts.getGuid())) {
            testSuiteToStart=ts;
            break;
          }
        }
        runningAut=(AutIdentifier)runningAutStateValue;
      }
    }
  }
  if (testSuiteToStart != null && runningAut != null && initTestExecution(event)) {
    final boolean autoScreenshots=Plugin.getDefault().getPreferenceStore().getBoolean(Constants.AUTO_SCREENSHOT_KEY);
    ChooseTestSuiteBP.getInstance().runTestSuite(testSuiteToStart,runningAut,autoScreenshots);
    if (lastStartedTestSuiteState != null && lastTestedRunningAutState != null) {
      lastStartedTestSuiteState.setValue(testSuiteToStart.getGuid());
      lastTestedRunningAutState.setValue(runningAut);
    }
  }
  return null;
}