Program: 94983
Project: 94983
Buggy source:
private void makeActions(){
  imAction=new Action(){
    public void run(){
      message((IStructuredSelection)treeViewer.getSelection());
    }
  }
;
  imAction.setImageDescriptor(SharedImages.getImageDescriptor(SharedImages.IMG_MESSAGE));
  removeAction=new Action(){
    public void run(){
      IStructuredSelection iss=(IStructuredSelection)treeViewer.getSelection();
      remove((IRosterEntry)iss.getFirstElement());
    }
  }
;
  removeAction.setText(Messages.MultiRosterView_Remove);
  removeAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
  setAvailableAction=new Action(Messages.MultiRosterView_SetAvailable,IAction.AS_RADIO_BUTTON){
    public void run(){
      if (isChecked()) {
        sendPresence(IPresence.Mode.AVAILABLE);
      }
    }
  }
;
  setAwayAction=new Action(Messages.MultiRosterView_SetAway,IAction.AS_RADIO_BUTTON){
    public void run(){
      if (isChecked()) {
        sendPresence(IPresence.Mode.AWAY);
      }
    }
  }
;
  setDNDAction=new Action(Messages.MultiRosterView_SetDoNotDisturb,IAction.AS_RADIO_BUTTON){
    public void run(){
      if (isChecked()) {
        sendPresence(IPresence.Mode.DND);
      }
    }
  }
;
  setInvisibleAction=new Action(Messages.MultiRosterView_SetInvisible,IAction.AS_RADIO_BUTTON){
    public void run(){
      if (isChecked()) {
        sendPresence(IPresence.Mode.INVISIBLE);
      }
    }
  }
;
  setOfflineAction=new Action(Messages.MultiRosterView_SetOffline,IAction.AS_RADIO_BUTTON){
    public void run(){
      if (isChecked()) {
        for (int i=0; i < rosterAccounts.size(); i++) {
          MultiRosterAccount account=(MultiRosterAccount)rosterAccounts.get(i);
          account.getRosterManager().removeRosterSubscriptionListener(subscriptionListener);
          treeViewer.remove(account);
        }
        rosterAccounts.clear();
        refreshTreeViewer(null,false);
        setStatusMenu.setVisible(false);
        getViewSite().getActionBars().getMenuManager().update(false);
      }
    }
  }
;
  setOfflineAction.setChecked(true);
}

Fixed version (ground truth):
private void makeActions(){
  imAction=new Action(){
    public void run(){
      message((IStructuredSelection)treeViewer.getSelection());
    }
  }
;
  imAction.setImageDescriptor(SharedImages.getImageDescriptor(SharedImages.IMG_MESSAGE));
  removeAction=new Action(){
    public void run(){
      IStructuredSelection iss=(IStructuredSelection)treeViewer.getSelection();
      remove((IRosterEntry)iss.getFirstElement());
    }
  }
;
  removeAction.setText(Messages.MultiRosterView_Remove);
  removeAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
  setAvailableAction=new Action(Messages.MultiRosterView_SetAvailable,IAction.AS_RADIO_BUTTON){
    public void run(){
      if (isChecked()) {
        sendPresence(IPresence.Mode.AVAILABLE);
      }
    }
  }
;
  setAwayAction=new Action(Messages.MultiRosterView_SetAway,IAction.AS_RADIO_BUTTON){
    public void run(){
      if (isChecked()) {
        sendPresence(IPresence.Mode.AWAY);
      }
    }
  }
;
  setDNDAction=new Action(Messages.MultiRosterView_SetDoNotDisturb,IAction.AS_RADIO_BUTTON){
    public void run(){
      if (isChecked()) {
        sendPresence(IPresence.Mode.DND);
      }
    }
  }
;
  setInvisibleAction=new Action(Messages.MultiRosterView_SetInvisible,IAction.AS_RADIO_BUTTON){
    public void run(){
      if (isChecked()) {
        sendPresence(IPresence.Mode.INVISIBLE);
      }
    }
  }
;
  setOfflineAction=new Action(Messages.MultiRosterView_SetOffline,IAction.AS_RADIO_BUTTON){
    public void run(){
      if (isChecked()) {
        for (int i=0; i < rosterAccounts.size(); i++) {
          MultiRosterAccount account=(MultiRosterAccount)rosterAccounts.get(i);
          account.getRosterManager().removeRosterSubscriptionListener(subscriptionListener);
          treeViewer.remove(account);
        }
        rosterAccounts.clear();
        refreshTreeViewer(null,false);
        setStatusMenu.setVisible(false);
        getViewSite().getActionBars().getMenuManager().update(false);
      }
    }
  }
;
  setOfflineAction.setChecked(true);
  openChatRoomAction=new Action(){
    public void run(){
      List list=new ArrayList();
      for (Iterator i=rosterAccounts.iterator(); i.hasNext(); ) {
        MultiRosterAccount acct=(MultiRosterAccount)i.next();
        IChatRoomManager man=acct.getPresenceContainerAdapter().getChatRoomManager();
        if (man != null) {
          list.add(man);
        }
      }
      showChatRooms((IChatRoomManager[])list.toArray(new IChatRoomManager[]{}));
    }
  }
;
  openChatRoomAction.setText("String_Node_Str");
  openChatRoomAction.setToolTipText("String_Node_Str");
  openChatRoomAction.setImageDescriptor(SharedImages.getImageDescriptor(SharedImages.IMG_ADD_CHAT));
  openChatRoomAction.setEnabled(true);
  openAccountChatRoomAction=new Action(){
    public void run(){
      IStructuredSelection iss=(IStructuredSelection)treeViewer.getSelection();
      IRoster roster=(IRoster)iss.getFirstElement();
      showChatRooms(new IChatRoomManager[]{roster.getPresenceContainerAdapter().getChatRoomManager()});
    }
  }
;
  openAccountChatRoomAction.setText("String_Node_Str");
  openAccountChatRoomAction.setEnabled(true);
  openAccountChatRoomAction.setImageDescriptor(SharedImages.getImageDescriptor(SharedImages.IMG_ADD_CHAT));
}