Program: 122392
Project: 122392
Buggy source:
/** 
 * Hook method for restoring widget values to the values that they held last time this wizard was used to completion.
 */
protected void restoreWidgetValues(){
  IDialogSettings settings=getDialogSettings();
  if (settings != null) {
    String[] directoryNames=settings.getArray(STORE_DESTINATION_NAMES_ID);
    if (directoryNames != null) {
      setDestinationValue(directoryNames[0]);
      for (int i=0; i < directoryNames.length; i++) {
        addDestinationItem(directoryNames[i]);
      }
    }
    shellLauncherButton.setSelection(settings.getBoolean(STORE_SHELL_LAUNCHER_ID));
    systemRoutineButton.setSelection(settings.getBoolean(STORE_SYSTEM_ROUTINE_ID));
    userRoutineButton.setSelection(settings.getBoolean(STORE_USER_ROUTINE_ID));
    modelButton.setSelection(settings.getBoolean(STORE_MODEL_ID));
    jobItemButton.setSelection(settings.getBoolean(STORE_JOB_ID));
    jobScriptButton.setSelection(settings.getBoolean(STORE_SOURCE_ID));
    contextButton.setSelection(settings.getBoolean(STORE_CONTEXT_ID));
    applyToChildrenButton.setSelection(settings.getBoolean(APPLY_TO_CHILDREN_ID));
  }
  launcherCombo.setItems(manager.getLauncher());
  if (manager.getLauncher().length > 0) {
    launcherCombo.select(0);
  }
  if (process.length > 0) {
    try {
      process[0].setProcess((ProcessItem)ProxyRepositoryFactory.getInstance().getUptodateProperty(process[0].getItem().getProperty()).getItem());
    }
 catch (    PersistenceException e) {
      e.printStackTrace();
    }
    List<String> contextNames=manager.getJobContextsComboValue((ProcessItem)process[0].getItem());
    contextCombo.setItems(contextNames.toArray(new String[contextNames.size()]));
    if (contextNames.size() > 0) {
      contextCombo.select(0);
    }
  }
}

Fixed version (ground truth):
/** 
 * Hook method for restoring widget values to the values that they held last time this wizard was used to completion.
 */
@Override protected void restoreWidgetValues(){
  IDialogSettings settings=getDialogSettings();
  if (settings != null) {
    String[] directoryNames=settings.getArray(STORE_DESTINATION_NAMES_ID);
    if (directoryNames != null) {
      setDestinationValue(directoryNames[0]);
      for (      String directoryName : directoryNames) {
        addDestinationItem(directoryName);
      }
    }
    shellLauncherButton.setSelection(settings.getBoolean(STORE_SHELL_LAUNCHER_ID));
    systemRoutineButton.setSelection(settings.getBoolean(STORE_SYSTEM_ROUTINE_ID));
    userRoutineButton.setSelection(settings.getBoolean(STORE_USER_ROUTINE_ID));
    modelButton.setSelection(settings.getBoolean(STORE_MODEL_ID));
    jobItemButton.setSelection(settings.getBoolean(STORE_JOB_ID));
    jobScriptButton.setSelection(settings.getBoolean(STORE_SOURCE_ID));
    contextButton.setSelection(settings.getBoolean(STORE_CONTEXT_ID));
    applyToChildrenButton.setSelection(settings.getBoolean(APPLY_TO_CHILDREN_ID));
  }
  launcherCombo.setItems(getManager().getLauncher());
  if (getManager().getLauncher().length > 0) {
    launcherCombo.select(0);
  }
  if (process.length > 0) {
    try {
      process[0].setProcess((ProcessItem)ProxyRepositoryFactory.getInstance().getUptodateProperty(process[0].getItem().getProperty()).getItem());
    }
 catch (    PersistenceException e) {
      e.printStackTrace();
    }
    List<String> contextNames=getManager().getJobContextsComboValue((ProcessItem)process[0].getItem());
    contextCombo.setItems(contextNames.toArray(new String[contextNames.size()]));
    if (contextNames.size() > 0) {
      contextCombo.select(0);
    }
  }
}