Program: 94982
Project: 94982
Buggy source:
private void fillLocalPullDown(IMenuManager manager){
  setStatusMenu=new MenuManager(Messages.MultiRosterView_SetStatusAs,null);
  setStatusMenu.add(setAvailableAction);
  setStatusMenu.add(setAwayAction);
  setStatusMenu.add(setDNDAction);
  setStatusMenu.add(setInvisibleAction);
  setStatusMenu.add(setOfflineAction);
  setStatusMenu.setVisible(false);
  manager.add(setStatusMenu);
  manager.add(new Separator());
  manager.add(new Action(Messages.MultiRosterView_ShowOffline,Action.AS_CHECK_BOX){
    public void run(){
      if (isChecked()) {
        treeViewer.addFilter(showOfflineFilter);
      }
 else {
        treeViewer.removeFilter(showOfflineFilter);
      }
    }
  }
);
  IAction showEmptyGroupsAction=new Action(Messages.MultiRosterView_ShowEmptyGroups,Action.AS_CHECK_BOX){
    public void run(){
      if (isChecked()) {
        treeViewer.addFilter(showEmptyGroupsFilter);
      }
 else {
        treeViewer.removeFilter(showEmptyGroupsFilter);
      }
    }
  }
;
  showEmptyGroupsAction.setChecked(true);
  manager.add(showEmptyGroupsAction);
  manager.add(new Separator());
  manager.add(new Action(Messages.MultiRosterView_AddContact){
    public void run(){
      AddContactDialog dialog=new AddContactDialog(treeViewer.getControl().getShell());
      dialog.setInput(rosterAccounts);
      if (Window.OK == dialog.open()) {
        IPresenceContainerAdapter ipca=dialog.getSelection();
        IRosterSubscriptionSender sender=ipca.getRosterManager().getRosterSubscriptionSender();
        try {
          sender.sendRosterAdd(dialog.getAccountID(),dialog.getAlias(),null);
        }
 catch (        ECFException e) {
          e.printStackTrace();
        }
      }
    }
  }
);
}

Fixed version (ground truth):
private void fillLocalPullDown(IMenuManager manager){
  setStatusMenu=new MenuManager(Messages.MultiRosterView_SetStatusAs,null);
  setStatusMenu.add(setAvailableAction);
  setStatusMenu.add(setAwayAction);
  setStatusMenu.add(setDNDAction);
  setStatusMenu.add(setInvisibleAction);
  setStatusMenu.add(setOfflineAction);
  setStatusMenu.setVisible(false);
  manager.add(setStatusMenu);
  manager.add(new Separator());
  manager.add(new Action(Messages.MultiRosterView_ShowOffline,Action.AS_CHECK_BOX){
    public void run(){
      if (isChecked()) {
        treeViewer.addFilter(showOfflineFilter);
      }
 else {
        treeViewer.removeFilter(showOfflineFilter);
      }
    }
  }
);
  IAction showEmptyGroupsAction=new Action(Messages.MultiRosterView_ShowEmptyGroups,Action.AS_CHECK_BOX){
    public void run(){
      if (isChecked()) {
        treeViewer.addFilter(showEmptyGroupsFilter);
      }
 else {
        treeViewer.removeFilter(showEmptyGroupsFilter);
      }
    }
  }
;
  showEmptyGroupsAction.setChecked(true);
  manager.add(showEmptyGroupsAction);
  manager.add(new Separator());
  manager.add(new Action(Messages.MultiRosterView_AddContact){
    public void run(){
      AddContactDialog dialog=new AddContactDialog(treeViewer.getControl().getShell());
      dialog.setInput(rosterAccounts);
      if (Window.OK == dialog.open()) {
        IPresenceContainerAdapter ipca=dialog.getSelection();
        IRosterSubscriptionSender sender=ipca.getRosterManager().getRosterSubscriptionSender();
        try {
          sender.sendRosterAdd(dialog.getAccountID(),dialog.getAlias(),null);
        }
 catch (        ECFException e) {
          e.printStackTrace();
        }
      }
    }
  }
);
  manager.add(new Separator());
  manager.add(openChatRoomAction);
}