Program: 92532
Project: 92532
Buggy source:
/** 
 * Validates the kernel composite input data.
 * @return true if configured data is valid and can be retrieved.
 */
public boolean isValid(){
  fIsTracepoints=fTracepointsActivateButton.getSelection();
  fIsWildcard=fWildcardActivateButton.getSelection();
  fIsLogLevel=fLogLevelActivateButton.getSelection();
  fIsAllTracepoints=fTracepointsViewer.getChecked(fProviderGroup);
  Set<String> set=new HashSet<String>();
  Object[] checkedElements=fTracepointsViewer.getCheckedElements();
  fSelectedEvents=new ArrayList<String>();
  for (int i=0; i < checkedElements.length; i++) {
    ITraceControlComponent component=(ITraceControlComponent)checkedElements[i];
    if (!set.contains(component.getName()) && (component instanceof BaseEventComponent)) {
      set.add(component.getName());
      fSelectedEvents.add(component.getName());
    }
  }
  if (fLogLevelButton.getSelection()) {
    fLogLevelType=LogLevelType.LOGLEVEL;
  }
 else   if (fLogLevelOnlyButton.getSelection()) {
    fLogLevelType=LogLevelType.LOGLEVEL_ONLY;
  }
 else {
    fLogLevelType=LogLevelType.LOGLEVEL_NONE;
  }
  fLogLevelEventName=null;
  String temp=fLogLevelEventNameText.getText();
  if (!temp.matches("String_Node_Str") && !temp.matches("String_Node_Str")) {
    MessageDialog.openError(getShell(),Messages.TraceControl_EnableEventsDialogTitle,Messages.TraceControl_InvalidLogLevelEventNameError + "String_Node_Str" + temp+ "String_Node_Str");
    return false;
  }
  if (!temp.matches("String_Node_Str")) {
    fLogLevelEventName=temp;
  }
  fWildcard=null;
  temp=fWildcardText.getText();
  if (!temp.matches("String_Node_Str") && !temp.matches("String_Node_Str")) {
    MessageDialog.openError(getShell(),Messages.TraceControl_EnableEventsDialogTitle,Messages.TraceControl_InvalidWildcardError + "String_Node_Str" + temp+ "String_Node_Str");
    return false;
  }
  if (!temp.matches("String_Node_Str")) {
    fWildcard=temp;
  }
  return true;
}

Fixed version (ground truth):
/** 
 * Validates the UST composite input data.
 * @return true if configured data is valid and can be retrieved.
 */
public boolean isValid(){
  fIsTracepoints=fTracepointsActivateButton.getSelection();
  fIsWildcard=fWildcardActivateButton.getSelection();
  fIsLogLevel=fLogLevelActivateButton.getSelection();
  fIsAllTracepoints=fTracepointsViewer.getChecked(fProviderGroup);
  Set<String> set=new HashSet<String>();
  Object[] checkedElements=fTracepointsViewer.getCheckedElements();
  fSelectedEvents=new ArrayList<String>();
  for (int i=0; i < checkedElements.length; i++) {
    ITraceControlComponent component=(ITraceControlComponent)checkedElements[i];
    if (!set.contains(component.getName()) && (component instanceof BaseEventComponent)) {
      set.add(component.getName());
      fSelectedEvents.add(component.getName());
    }
  }
  if (fLogLevelButton.getSelection()) {
    fLogLevelType=LogLevelType.LOGLEVEL;
  }
 else   if (fLogLevelOnlyButton.getSelection()) {
    fLogLevelType=LogLevelType.LOGLEVEL_ONLY;
  }
 else {
    fLogLevelType=LogLevelType.LOGLEVEL_NONE;
  }
  fLogLevelEventName=null;
  String temp=fLogLevelEventNameText.getText();
  if (!temp.matches("String_Node_Str") && !temp.matches("String_Node_Str")) {
    MessageDialog.openError(getShell(),Messages.TraceControl_EnableEventsDialogTitle,Messages.TraceControl_InvalidLogLevelEventNameError + "String_Node_Str" + temp+ "String_Node_Str");
    return false;
  }
  if (!temp.matches("String_Node_Str")) {
    fLogLevelEventName=temp;
  }
  TraceLogLevel[] levels=TraceLogLevel.values();
  int id=fLogLevelCombo.getSelectionIndex();
  if ((id < 0) && fIsLogLevel) {
    MessageDialog.openError(getShell(),Messages.TraceControl_EnableEventsDialogTitle,Messages.TraceControl_InvalidLogLevel + "String_Node_Str" + temp+ "String_Node_Str");
    return false;
  }
 else {
    fLogLevel=levels[id];
  }
  fWildcard=null;
  temp=fWildcardText.getText();
  if (!temp.matches("String_Node_Str") && !temp.matches("String_Node_Str")) {
    MessageDialog.openError(getShell(),Messages.TraceControl_EnableEventsDialogTitle,Messages.TraceControl_InvalidWildcardError + "String_Node_Str" + temp+ "String_Node_Str");
    return false;
  }
  if (!temp.matches("String_Node_Str")) {
    fWildcard=temp;
  }
  return true;
}