Program: 95699
Project: 95699
Buggy source:
/** 
 * {@inheritDoc}
 */
public Object execute(ExecutionEvent event) throws ExecutionException {
  final AutIdentifier autId=(AutIdentifier)event.getObjectParameterForExecution(AUT_ID);
  final String jobName=Messages.UIJobActivateInspector;
  Job activateInspectorJob=new Job(jobName){
    protected IStatus run(    IProgressMonitor monitor){
      monitor.beginTask(jobName,IProgressMonitor.UNKNOWN);
      ActivateInspectorMessage message=new ActivateInspectorMessage();
      try {
        AUTConnection.getInstance().connectToAut(autId,new NullProgressMonitor());
        AUTConnection.getInstance().request(message,new ActivateInspectorResponseCommand(),5000);
      }
 catch (      NotConnectedException nce) {
        ErrorHandlingUtil.createMessageDialog(MessageIDs.E_NO_AUT_CONNECTION_ERROR);
      }
catch (      ConnectionException ce) {
        ErrorHandlingUtil.createMessageDialog(ce,null,null);
      }
catch (      CommunicationException ce) {
        ErrorHandlingUtil.createMessageDialog(ce,null,null);
      }
      monitor.done();
      return Status.OK_STATUS;
    }
  }
;
  activateInspectorJob.setSystem(true);
  JobUtils.executeJob(activateInspectorJob,null);
  return null;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public Object execute(final ExecutionEvent event){
  final String jobName=Messages.UIJobActivateInspector;
  Job activateInspectorJob=new Job(jobName){
    protected IStatus run(    IProgressMonitor monitor){
      monitor.beginTask(jobName,IProgressMonitor.UNKNOWN);
      AutIdentifier autId=null;
      try {
        autId=(AutIdentifier)event.getObjectParameterForExecution(AUT_ID);
        lastAut=autId;
      }
 catch (      ExecutionException e) {
        InspectableAutSourceProvider iasp=new InspectableAutSourceProvider();
        Object inspectableAUTs=iasp.getCurrentState().get(InspectableAutSourceProvider.INSPECTABLE_AUTS);
        if (inspectableAUTs != null && inspectableAUTs instanceof List) {
          List auts=(List)inspectableAUTs;
          if (auts.size() == 1) {
            Object object=auts.get(0);
            autId=object instanceof AutIdentifier ? (AutIdentifier)object : null;
            lastAut=autId;
          }
 else           if (lastAut != null && auts.contains(lastAut)) {
            autId=lastAut;
          }
        }
      }
      if (autId == null) {
        return Status.CANCEL_STATUS;
      }
      ActivateInspectorMessage message=new ActivateInspectorMessage();
      try {
        AUTConnection.getInstance().connectToAut(autId,new NullProgressMonitor());
        AUTConnection.getInstance().request(message,new ActivateInspectorResponseCommand(),5000);
      }
 catch (      NotConnectedException nce) {
        ErrorHandlingUtil.createMessageDialog(MessageIDs.E_NO_AUT_CONNECTION_ERROR);
      }
catch (      ConnectionException ce) {
        ErrorHandlingUtil.createMessageDialog(ce,null,null);
      }
catch (      CommunicationException ce) {
        ErrorHandlingUtil.createMessageDialog(ce,null,null);
      }
      monitor.done();
      return Status.OK_STATUS;
    }
  }
;
  activateInspectorJob.setSystem(true);
  JobUtils.executeJob(activateInspectorJob,null);
  return null;
}