Program: 91864
Project: 91864
Buggy source:
@Override public void initializeFrom(ILaunchConfiguration config){
  IProject previousProject=getOprofileProject();
  IProject project=getProject(config);
  setOprofileProject(project);
  updateOprofileInfo();
  String previousHost=null;
  if (previousProject != null) {
    if (previousProject.getLocationURI() != null) {
      previousHost=previousProject.getLocationURI().getHost();
    }
  }
  String host;
  if (project != null) {
    host=project.getLocationURI().getHost();
  }
 else {
    host=null;
  }
  if (previousProject == null || previousHost != host || host == null || counters == null) {
    Control[] children=top.getChildren();
    for (    Control control : children) {
      control.dispose();
    }
    if (getOprofileTimerMode()) {
      Label timerModeLabel=new Label(top,SWT.LEFT);
      timerModeLabel.setText(OprofileLaunchMessages.getString("String_Node_Str"));
    }
 else {
      createVerticalSpacer(top,1);
      defaultEventCheck=new Button(top,SWT.CHECK);
      defaultEventCheck.setText(OprofileLaunchMessages.getString("String_Node_Str"));
      defaultEventCheck.setLayoutData(new GridData());
      defaultEventCheck.addSelectionListener(new SelectionAdapter(){
        @Override public void widgetSelected(        SelectionEvent se){
          handleEnabledToggle();
        }
      }
);
      createVerticalSpacer(top,1);
      createCounterTabs(top);
    }
  }
  if (!getOprofileTimerMode()) {
    for (int i=0; i < counters.length; i++) {
      counters[i].loadConfiguration(config);
    }
    for (    CounterSubTab tab : counterSubTabs) {
      tab.initializeTab(config);
      tab.createEventsFilter();
    }
    try {
      boolean enabledState=config.getAttribute(OprofileLaunchPlugin.ATTR_USE_DEFAULT_EVENT,true);
      defaultEventCheck.setSelection(enabledState);
      setEnabledState(!enabledState);
    }
 catch (    CoreException e) {
      e.printStackTrace();
    }
  }
}

Fixed version (ground truth):
@Override public void initializeFrom(ILaunchConfiguration config){
  IProject previousProject=getOprofileProject();
  IProject project=getProject(config);
  setOprofileProject(project);
  updateOprofileInfo();
  String previousHost=null;
  if (previousProject != null) {
    if (previousProject.getLocationURI() != null) {
      previousHost=previousProject.getLocationURI().getHost();
    }
  }
  String host;
  if (project != null) {
    host=project.getLocationURI().getHost();
  }
 else {
    host=null;
  }
  if (previousProject == null || previousHost != host || host == null || counters == null) {
    Control[] children=top.getChildren();
    for (    Control control : children) {
      control.dispose();
    }
    OprofileCounter[] ctrs=getOprofileCounters(null);
    if (getOprofileTimerMode() || (ctrs.length > 0 && ctrs[0].getValidEvents() == null)) {
      Label timerModeLabel=new Label(top,SWT.LEFT);
      timerModeLabel.setText(OprofileLaunchMessages.getString("String_Node_Str"));
    }
 else {
      createVerticalSpacer(top,1);
      defaultEventCheck=new Button(top,SWT.CHECK);
      defaultEventCheck.setText(OprofileLaunchMessages.getString("String_Node_Str"));
      defaultEventCheck.setLayoutData(new GridData());
      defaultEventCheck.addSelectionListener(new SelectionAdapter(){
        @Override public void widgetSelected(        SelectionEvent se){
          handleEnabledToggle();
        }
      }
);
      createVerticalSpacer(top,1);
      createCounterTabs(top);
    }
  }
  if (!getOprofileTimerMode()) {
    for (int i=0; i < counters.length; i++) {
      counters[i].loadConfiguration(config);
    }
    for (    CounterSubTab tab : counterSubTabs) {
      tab.initializeTab(config);
      tab.createEventsFilter();
    }
    try {
      boolean enabledState=config.getAttribute(OprofileLaunchPlugin.ATTR_USE_DEFAULT_EVENT,true);
      defaultEventCheck.setSelection(enabledState);
      setEnabledState(!enabledState);
    }
 catch (    CoreException e) {
      e.printStackTrace();
    }
  }
}