Program: 65207
Project: 65207
Buggy source:
/** 
 * Creates actions (and contribution items) for the menu bar, toolbar and status line.
 */
public void makeActions(final IWorkbenchWindow window){
  openFileAction=new OpenFileAction(window);
  register(openFileAction);
  newReportAction=new NewReportAction(window);
  register(newReportAction);
  newLibraryAction=new NewLibraryAction(window);
  register(newLibraryAction);
  newReportTemplateAction=new NewReportTemplateAction(window);
  register(newReportTemplateAction);
  saveAction=ActionFactory.SAVE.create(window);
  register(saveAction);
  saveAsAction=ActionFactory.SAVE_AS.create(window);
  register(saveAsAction);
  saveAllAction=ActionFactory.SAVE_ALL.create(window);
  register(saveAllAction);
  undoAction=ActionFactory.UNDO.create(window);
  register(undoAction);
  redoAction=ActionFactory.REDO.create(window);
  register(redoAction);
  cutAction=ActionFactory.CUT.create(window);
  register(cutAction);
  copyAction=ActionFactory.COPY.create(window);
  register(copyAction);
  pasteAction=ActionFactory.PASTE.create(window);
  register(pasteAction);
  selectAllAction=ActionFactory.SELECT_ALL.create(window);
  register(selectAllAction);
  findAction=ActionFactory.FIND.create(window);
  register(findAction);
  closeAction=ActionFactory.CLOSE.create(window);
  register(closeAction);
  closeAllAction=ActionFactory.CLOSE_ALL.create(window);
  register(closeAllAction);
  helpContentsAction=ActionFactory.HELP_CONTENTS.create(window);
  register(helpContentsAction);
  aboutAction=ActionFactory.ABOUT.create(window);
  aboutAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor("String_Node_Str"));
  register(aboutAction);
  openPreferencesAction=ActionFactory.PREFERENCES.create(window);
  register(openPreferencesAction);
  deleteAction=ActionFactory.DELETE.create(window);
  register(deleteAction);
  makeFeatureDependentActions(window);
  lockToolBarAction=ActionFactory.LOCK_TOOL_BAR.create(window);
  register(lockToolBarAction);
  forwardHistoryAction=ActionFactory.FORWARD_HISTORY.create(window);
  register(forwardHistoryAction);
  backwardHistoryAction=ActionFactory.BACKWARD_HISTORY.create(window);
  register(backwardHistoryAction);
  quitAction=ActionFactory.QUIT.create(window);
  register(quitAction);
  Object[] adapters=ElementAdapterManager.getAdapters(this,IExtensionFile.class);
  List<IWorkbenchAction> tempList=new ArrayList<IWorkbenchAction>();
  if (adapters != null) {
    for (int i=0; i < adapters.length; i++) {
      IExtensionFile newFile=(IExtensionFile)adapters[i];
      INewExtensionFileWorkbenchAction action=newFile.getNewAction();
      if (action == null) {
        continue;
      }
      action.init(window);
      register(action);
      tempList.add(action);
    }
    newActios=tempList.toArray(new IWorkbenchAction[tempList.size()]);
  }
 else {
    newActios=new IWorkbenchAction[0];
  }
  if (window.getWorkbench().getIntroManager().hasIntro()) {
    introAction=ActionFactory.INTRO.create(window);
    register(introAction);
  }
  pinEditorContributionItem=ContributionItemFactory.PIN_EDITOR.create(window);
}

Fixed version (ground truth):
/** 
 * Creates actions (and contribution items) for the menu bar, toolbar and status line.
 */
public void makeActions(final IWorkbenchWindow window){
  openFileAction=new OpenFileAction(window);
  register(openFileAction);
  newReportAction=new NewReportAction(window);
  register(newReportAction);
  newLibraryAction=new NewLibraryAction(window);
  register(newLibraryAction);
  newReportTemplateAction=new NewReportTemplateAction(window);
  register(newReportTemplateAction);
  saveAction=ActionFactory.SAVE.create(window);
  register(saveAction);
  saveAsAction=ActionFactory.SAVE_AS.create(window);
  register(saveAsAction);
  saveAllAction=ActionFactory.SAVE_ALL.create(window);
  register(saveAllAction);
  undoAction=ActionFactory.UNDO.create(window);
  register(undoAction);
  redoAction=ActionFactory.REDO.create(window);
  register(redoAction);
  cutAction=ActionFactory.CUT.create(window);
  register(cutAction);
  copyAction=ActionFactory.COPY.create(window);
  register(copyAction);
  pasteAction=ActionFactory.PASTE.create(window);
  register(pasteAction);
  selectAllAction=ActionFactory.SELECT_ALL.create(window);
  register(selectAllAction);
  findAction=ActionFactory.FIND.create(window);
  register(findAction);
  closeAction=ActionFactory.CLOSE.create(window);
  register(closeAction);
  closeAllAction=ActionFactory.CLOSE_ALL.create(window);
  register(closeAllAction);
  helpContentsAction=ActionFactory.HELP_CONTENTS.create(window);
  register(helpContentsAction);
  aboutAction=ActionFactory.ABOUT.create(window);
  aboutAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor("String_Node_Str"));
  register(aboutAction);
  openPreferencesAction=ActionFactory.PREFERENCES.create(window);
  register(openPreferencesAction);
  deleteAction=ActionFactory.DELETE.create(window);
  register(deleteAction);
  makeFeatureDependentActions(window);
  lockToolBarAction=ActionFactory.LOCK_TOOL_BAR.create(window);
  register(lockToolBarAction);
  forwardHistoryAction=ActionFactory.FORWARD_HISTORY.create(window);
  register(forwardHistoryAction);
  backwardHistoryAction=ActionFactory.BACKWARD_HISTORY.create(window);
  register(backwardHistoryAction);
  quitAction=ActionFactory.QUIT.create(window);
  register(quitAction);
  Object[] adapters=ElementAdapterManager.getAdapters(this,IExtensionFile.class);
  List<IWorkbenchAction> tempList=new ArrayList<IWorkbenchAction>();
  if (adapters != null) {
    for (int i=0; i < adapters.length; i++) {
      IExtensionFile newFile=(IExtensionFile)adapters[i];
      INewExtensionFileWorkbenchAction action=newFile.getNewAction();
      if (action == null) {
        continue;
      }
      action.init(window);
      register(action);
      tempList.add(action);
    }
    newActions=tempList.toArray(new IWorkbenchAction[tempList.size()]);
  }
 else {
    newActions=new IWorkbenchAction[0];
  }
  if (window.getWorkbench().getIntroManager().hasIntro()) {
    introAction=ActionFactory.INTRO.create(window);
    register(introAction);
  }
  pinEditorContributionItem=ContributionItemFactory.PIN_EDITOR.create(window);
}