Program: 95046
Project: 95046
Buggy source:
private void makeActions(){
  selectedDoubleClickAction=new Action(){
    public void run(){
      RosterObject rosterObject=getSelectedTreeObject();
      final ID targetID=rosterObject.getID();
      if (targetID != null)       openChatWindowForTarget(targetID);
    }
  }
;
  disconnectAction=new Action(){
    public void run(){
      if (MessageDialog.openConfirm(RosterView.this.getViewSite().getShell(),"String_Node_Str","String_Node_Str")) {
        for (Iterator i=accounts.entrySet().iterator(); i.hasNext(); ) {
          Map.Entry entry=(Map.Entry)i.next();
          RosterUserAccount account=(RosterUserAccount)entry.getValue();
          disconnectAccount(account);
        }
        setToolbarEnabled(false);
        this.setEnabled(false);
      }
    }
  }
;
  disconnectAction.setText("String_Node_Str");
  disconnectAction.setToolTipText("String_Node_Str");
  disconnectAction.setEnabled(false);
  disconnectAction.setImageDescriptor(ImageDescriptor.createFromImage(Activator.getDefault().getImageRegistry().get(Constants.DECORATION_DISCONNECT_ENABLED)));
  disconnectAction.setDisabledImageDescriptor(ImageDescriptor.createFromImage(Activator.getDefault().getImageRegistry().get(Constants.DECORATION_DISCONNECT_DISABLED)));
  openChatRoomAction=new Action(){
    public void run(){
      List list=new ArrayList();
      for (Iterator i=accounts.values().iterator(); i.hasNext(); ) {
        RosterUserAccount ua=(RosterUserAccount)i.next();
        IChatRoomManager man=ua.getPresenceContainer().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(ImageDescriptor.createFromImage(Activator.getDefault().getImageRegistry().get(Constants.DECORATION_ADD_CHAT)));
  openChatRoomAction.setEnabled(false);
}

Fixed version (ground truth):
private void makeActions(){
  selectedDoubleClickAction=new Action(){
    public void run(){
      RosterObject rosterObject=getSelectedTreeObject();
      final ID targetID=rosterObject.getID();
      if (targetID != null)       openChatWindowForTarget(targetID);
    }
  }
;
  disconnectAction=new Action(){
    public void run(){
      if (MessageDialog.openConfirm(RosterView.this.getViewSite().getShell(),"String_Node_Str","String_Node_Str")) {
        Set entrySet=new HashSet();
        entrySet.addAll(accounts.entrySet());
        for (Iterator i=entrySet.iterator(); i.hasNext(); ) {
          Map.Entry entry=(Map.Entry)i.next();
          RosterUserAccount account=(RosterUserAccount)entry.getValue();
          account.getInputHandler().disconnect();
        }
        setToolbarEnabled(false);
        this.setEnabled(false);
      }
    }
  }
;
  disconnectAction.setText("String_Node_Str");
  disconnectAction.setToolTipText("String_Node_Str");
  disconnectAction.setEnabled(false);
  disconnectAction.setImageDescriptor(ImageDescriptor.createFromImage(Activator.getDefault().getImageRegistry().get(Constants.DECORATION_DISCONNECT_ENABLED)));
  disconnectAction.setDisabledImageDescriptor(ImageDescriptor.createFromImage(Activator.getDefault().getImageRegistry().get(Constants.DECORATION_DISCONNECT_DISABLED)));
  openChatRoomAction=new Action(){
    public void run(){
      List list=new ArrayList();
      for (Iterator i=accounts.values().iterator(); i.hasNext(); ) {
        RosterUserAccount ua=(RosterUserAccount)i.next();
        IChatRoomManager man=ua.getPresenceContainer().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(ImageDescriptor.createFromImage(Activator.getDefault().getImageRegistry().get(Constants.DECORATION_ADD_CHAT)));
  openChatRoomAction.setEnabled(false);
}