Program: 92017
Project: 92017
Buggy source:
@Override protected void okPressed(){
  fChannelInfo=new ChannelInfo(fChannelNameText.getText());
  fChannelInfo.setSubBufferSize(fSubBufferSizeText.getText().equals(DEFAULT_TEXT) ? LTTngControlServiceConstants.UNUSED_VALUE : Long.parseLong(fSubBufferSizeText.getText()));
  fChannelInfo.setNumberOfSubBuffers(fNumberOfSubBuffersText.getText().equals(DEFAULT_TEXT) ? LTTngControlServiceConstants.UNUSED_VALUE : Integer.parseInt(fNumberOfSubBuffersText.getText()));
  fChannelInfo.setSwitchTimer(fSwitchTimerText.getText().equals(DEFAULT_TEXT) ? LTTngControlServiceConstants.UNUSED_VALUE : Long.parseLong(fSwitchTimerText.getText()));
  fChannelInfo.setReadTimer(fReadTimerText.getText().equals(DEFAULT_TEXT) ? LTTngControlServiceConstants.UNUSED_VALUE : Long.parseLong(fReadTimerText.getText()));
  fChannelInfo.setOverwriteMode(fOverwriteModeButton.getSelection());
  if (fTargetNodeComponent.isTraceFileRotationSupported()) {
    fChannelInfo.setMaxSizeTraceFiles(fMaxSizeTraceText.getText().equals(DEFAULT_TEXT) ? LTTngControlServiceConstants.UNUSED_VALUE : Integer.parseInt(fMaxSizeTraceText.getText()));
    fChannelInfo.setMaxNumberTraceFiles(fMaxNumberTraceText.getText().equals(DEFAULT_TEXT) ? LTTngControlServiceConstants.UNUSED_VALUE : Integer.parseInt(fMaxNumberTraceText.getText()));
  }
  if (fTargetNodeComponent.isBufferTypeConfigSupported()) {
    if (fSharedBuffersButton.getSelection()) {
      fChannelInfo.setBufferType(BufferType.BUFFER_SHARED);
    }
 else     if (fPIDBuffersButton.getSelection()) {
      fChannelInfo.setBufferType(BufferType.BUFFER_PER_PID);
    }
 else     if (fUIDBuffersButton.getSelection()) {
      fChannelInfo.setBufferType(BufferType.BUFFER_PER_UID);
    }
 else {
      fChannelInfo.setBufferType(BufferType.BUFFER_TYPE_UNKNOWN);
    }
  }
  fIsKernel=fKernelButton.getSelection();
  if (!fChannelInfo.getName().matches("String_Node_Str")) {
    MessageDialog.openError(getShell(),Messages.TraceControl_EnableChannelDialogTitle,Messages.TraceControl_InvalidChannelNameError + "String_Node_Str" + fChannelInfo.getName()+ "String_Node_Str");
    return;
  }
  if (fDomain != null && fDomain.containsChild(fChannelInfo.getName())) {
    MessageDialog.openError(getShell(),Messages.TraceControl_EnableChannelDialogTitle,Messages.TraceControl_ChannelAlreadyExistsError + "String_Node_Str" + fChannelInfo.getName()+ "String_Node_Str");
    return;
  }
  super.okPressed();
}

Fixed version (ground truth):
@Override protected void okPressed(){
  ChannelInfo channelInfo=new ChannelInfo(fChannelNameText.getText());
  channelInfo.setSubBufferSize(fSubBufferSizeText.getText().equals(DEFAULT_TEXT) ? LTTngControlServiceConstants.UNUSED_VALUE : Long.parseLong(fSubBufferSizeText.getText()));
  channelInfo.setNumberOfSubBuffers(fNumberOfSubBuffersText.getText().equals(DEFAULT_TEXT) ? LTTngControlServiceConstants.UNUSED_VALUE : Integer.parseInt(fNumberOfSubBuffersText.getText()));
  channelInfo.setSwitchTimer(fSwitchTimerText.getText().equals(DEFAULT_TEXT) ? LTTngControlServiceConstants.UNUSED_VALUE : Long.parseLong(fSwitchTimerText.getText()));
  channelInfo.setReadTimer(fReadTimerText.getText().equals(DEFAULT_TEXT) ? LTTngControlServiceConstants.UNUSED_VALUE : Long.parseLong(fReadTimerText.getText()));
  channelInfo.setOverwriteMode(fOverwriteModeButton.getSelection());
  if (fTargetNodeComponent.isTraceFileRotationSupported()) {
    channelInfo.setMaxSizeTraceFiles(fMaxSizeTraceText.getText().equals(DEFAULT_TEXT) ? LTTngControlServiceConstants.UNUSED_VALUE : Integer.parseInt(fMaxSizeTraceText.getText()));
    channelInfo.setMaxNumberTraceFiles(fMaxNumberTraceText.getText().equals(DEFAULT_TEXT) ? LTTngControlServiceConstants.UNUSED_VALUE : Integer.parseInt(fMaxNumberTraceText.getText()));
  }
  if (fTargetNodeComponent.isBufferTypeConfigSupported()) {
    if (fSharedBuffersButton.getSelection()) {
      channelInfo.setBufferType(BufferType.BUFFER_SHARED);
    }
 else     if (fPIDBuffersButton.getSelection()) {
      channelInfo.setBufferType(BufferType.BUFFER_PER_PID);
    }
 else     if (fUIDBuffersButton.getSelection()) {
      channelInfo.setBufferType(BufferType.BUFFER_PER_UID);
    }
 else {
      channelInfo.setBufferType(BufferType.BUFFER_TYPE_UNKNOWN);
    }
  }
  fIsKernel=fKernelButton.getSelection();
  if (!channelInfo.getName().matches("String_Node_Str")) {
    MessageDialog.openError(getShell(),Messages.TraceControl_EnableChannelDialogTitle,Messages.TraceControl_InvalidChannelNameError + "String_Node_Str" + channelInfo.getName()+ "String_Node_Str");
    return;
  }
  if (fDomain != null && fDomain.containsChild(channelInfo.getName())) {
    MessageDialog.openError(getShell(),Messages.TraceControl_EnableChannelDialogTitle,Messages.TraceControl_ChannelAlreadyExistsError + "String_Node_Str" + channelInfo.getName()+ "String_Node_Str");
    return;
  }
  fChannelInfo=channelInfo;
  super.okPressed();
}