Program: 103567
Project: 103567
Buggy source:
/** 
 * Returns this panel that has been configured to display the meta contact and meta contact group cells.
 * @param tree the source tree
 * @param value the tree node
 * @param selected indicates if the node is selected
 * @param expanded indicates if the node is expanded
 * @param leaf indicates if the node is a leaf
 * @param row indicates the row number of the node
 * @param hasFocus indicates if the node has the focus
 * @return this panel
 */
public Component getTreeCellRendererComponent(JTree tree,Object value,boolean selected,boolean expanded,boolean leaf,int row,boolean hasFocus){
  this.tree=tree;
  this.row=row;
  this.isSelected=selected;
  this.treeNode=(TreeNode)value;
  this.rightLabel.setIcon(null);
  DefaultTreeContactList contactList=(DefaultTreeContactList)tree;
  if (value instanceof ContactNode) {
    UIContact contact=((ContactNode)value).getContactDescriptor();
    String displayName=contact.getDisplayName();
    if (displayName == null || displayName.length() < 1) {
      displayName=GuiActivator.getResources().getI18NString("String_Node_Str");
    }
    this.nameLabel.setText(displayName);
    if (contactList.isContactActive(contact)) {
      statusIcon.setImage(msgReceivedImage);
    }
 else {
      statusIcon=contact.getStatusIcon();
    }
    this.statusLabel.setIcon(statusIcon);
    this.nameLabel.setFont(this.getFont().deriveFont(Font.PLAIN));
    if (contactForegroundColor != null)     this.nameLabel.setForeground(contactForegroundColor);
    this.initDisplayDetails(contact);
    this.initButtonsPanel(contact);
    ImageIcon avatar=isSelected ? contact.getAvatar(isSelected,EXTENDED_AVATAR_WIDTH,EXTENDED_AVATAR_HEIGHT) : contact.getAvatar(isSelected,AVATAR_WIDTH,AVATAR_HEIGHT);
    if (avatar != null)     this.rightLabel.setIcon(avatar);
    this.rightLabel.setText("String_Node_Str");
    this.setToolTipText(contact.getDescriptor().toString());
  }
 else   if (value instanceof GroupNode) {
    UIGroup groupItem=((GroupNode)value).getGroupDescriptor();
    this.nameLabel.setText(groupItem.getDisplayName());
    this.nameLabel.setFont(this.getFont().deriveFont(Font.BOLD));
    if (groupForegroundColor != null)     this.nameLabel.setForeground(groupForegroundColor);
    this.remove(displayDetailsLabel);
    this.remove(callButton);
    this.remove(chatButton);
    this.statusLabel.setIcon(expanded ? openedGroupIcon : closedGroupIcon);
    this.rightLabel.setIcon(null);
    if (groupItem.countChildContacts() >= 0)     this.rightLabel.setText(groupItem.countOnlineChildContacts() + "String_Node_Str" + groupItem.countChildContacts());
    this.setToolTipText(groupItem.getDescriptor().toString());
  }
  return this;
}

Fixed version (ground truth):
/** 
 * Returns this panel that has been configured to display the meta contact and meta contact group cells.
 * @param tree the source tree
 * @param value the tree node
 * @param selected indicates if the node is selected
 * @param expanded indicates if the node is expanded
 * @param leaf indicates if the node is a leaf
 * @param row indicates the row number of the node
 * @param hasFocus indicates if the node has the focus
 * @return this panel
 */
public Component getTreeCellRendererComponent(JTree tree,Object value,boolean selected,boolean expanded,boolean leaf,int row,boolean hasFocus){
  this.tree=tree;
  this.row=row;
  this.isSelected=selected;
  this.treeNode=(TreeNode)value;
  this.rightLabel.setIcon(null);
  DefaultTreeContactList contactList=(DefaultTreeContactList)tree;
  if (value instanceof ContactNode) {
    UIContact contact=((ContactNode)value).getContactDescriptor();
    String displayName=contact.getDisplayName();
    if (displayName == null || displayName.trim().length() < 1) {
      displayName=GuiActivator.getResources().getI18NString("String_Node_Str");
    }
    this.nameLabel.setText(displayName);
    if (contactList.isContactActive(contact)) {
      statusIcon.setImage(msgReceivedImage);
    }
 else {
      statusIcon=contact.getStatusIcon();
    }
    this.statusLabel.setIcon(statusIcon);
    this.nameLabel.setFont(this.getFont().deriveFont(Font.PLAIN));
    if (contactForegroundColor != null)     this.nameLabel.setForeground(contactForegroundColor);
    this.initDisplayDetails(contact);
    this.initButtonsPanel(contact);
    ImageIcon avatar=isSelected ? contact.getAvatar(isSelected,EXTENDED_AVATAR_WIDTH,EXTENDED_AVATAR_HEIGHT) : contact.getAvatar(isSelected,AVATAR_WIDTH,AVATAR_HEIGHT);
    if (avatar != null)     this.rightLabel.setIcon(avatar);
    this.rightLabel.setText("String_Node_Str");
    this.setToolTipText(contact.getDescriptor().toString());
  }
 else   if (value instanceof GroupNode) {
    UIGroup groupItem=((GroupNode)value).getGroupDescriptor();
    this.nameLabel.setText(groupItem.getDisplayName());
    this.nameLabel.setFont(this.getFont().deriveFont(Font.BOLD));
    if (groupForegroundColor != null)     this.nameLabel.setForeground(groupForegroundColor);
    this.remove(displayDetailsLabel);
    this.remove(callButton);
    this.remove(chatButton);
    this.statusLabel.setIcon(expanded ? openedGroupIcon : closedGroupIcon);
    this.rightLabel.setIcon(null);
    if (groupItem.countChildContacts() >= 0)     this.rightLabel.setText(groupItem.countOnlineChildContacts() + "String_Node_Str" + groupItem.countChildContacts());
    this.setToolTipText(groupItem.getDescriptor().toString());
  }
  return this;
}