Program: 92175
Project: 92175
Buggy source:
/** 
 * @see ILaunchConfigurationTab#initializeFrom(ILaunchConfiguration)
 */
public void initializeFrom(ILaunchConfiguration config){
  this.hasPermissions=null;
  IProject previousProject=Oprofile.OprofileProject.getProject();
  IProject project=getProject(config);
  Oprofile.OprofileProject.setProject(project);
  try {
    if (!hasPermissions(project)) {
      OpcontrolException e=new OpcontrolException(OprofileCorePlugin.createErrorStatus("String_Node_Str",null));
      OprofileCorePlugin.showErrorDialog("String_Node_Str",e);
      createTimerModeTab(top);
      return;
    }
  }
 catch (  OpcontrolException e) {
    OprofileCorePlugin.showErrorDialog("String_Node_Str",e);
    createTimerModeTab(top);
    return;
  }
  Oprofile.updateInfo();
  String previousHost=null;
  if (previousProject != null) {
    if (previousProject.getLocationURI() != null) {
      previousHost=previousProject.getLocationURI().getHost();
    }
  }
  String host=project.getLocationURI().getHost();
  if (previousProject == null || previousHost != host || counters == null) {
    Control[] children=top.getChildren();
    for (    Control control : children) {
      control.dispose();
    }
    if (getTimerMode()) {
      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 (!getTimerMode()) {
    for (int i=0; i < counters.length; i++) {
      counters[i].loadConfiguration(config);
    }
    for (    CounterSubTab tab : counterSubTabs) {
      tab.initializeTab(config);
    }
    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):
/** 
 * @see ILaunchConfigurationTab#initializeFrom(ILaunchConfiguration)
 */
public void initializeFrom(ILaunchConfiguration config){
  this.hasPermissions=null;
  IProject previousProject=Oprofile.OprofileProject.getProject();
  IProject project=getProject(config);
  Oprofile.OprofileProject.setProject(project);
  try {
    if (!hasPermissions(project)) {
      OpcontrolException e=new OpcontrolException(OprofileCorePlugin.createErrorStatus("String_Node_Str",null));
      OprofileCorePlugin.showErrorDialog("String_Node_Str",e);
      createTimerModeTab(top);
      return;
    }
  }
 catch (  OpcontrolException e) {
    OprofileCorePlugin.showErrorDialog("String_Node_Str",e);
    createTimerModeTab(top);
    return;
  }
  Oprofile.updateInfo();
  String previousHost=null;
  if (previousProject != null) {
    if (previousProject.getLocationURI() != null) {
      previousHost=previousProject.getLocationURI().getHost();
    }
  }
  String host=project.getLocationURI().getHost();
  if (previousProject == null || previousHost != host || host == null || counters == null) {
    Control[] children=top.getChildren();
    for (    Control control : children) {
      control.dispose();
    }
    if (getTimerMode()) {
      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 (!getTimerMode()) {
    for (int i=0; i < counters.length; i++) {
      counters[i].loadConfiguration(config);
    }
    for (    CounterSubTab tab : counterSubTabs) {
      tab.initializeTab(config);
    }
    try {
      boolean enabledState=config.getAttribute(OprofileLaunchPlugin.ATTR_USE_DEFAULT_EVENT,true);
      defaultEventCheck.setSelection(enabledState);
      setEnabledState(!enabledState);
    }
 catch (    CoreException e) {
      e.printStackTrace();
    }
  }
}