Program: 104208
Project: 104208
Buggy source:
/** 
 * Creates an instance of <tt>ChatWindow</tt> by passing to it an instance of the main application window.
 * @param mainFrame the main application window
 */
public ChatWindow(){
  if (!ConfigurationManager.isWindowDecorated()) {
    this.setUndecorated(true);
  }
  this.setHierarchicallyOpaque(false);
  this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
  if (ConfigurationManager.isMultiChatWindowEnabled()) {
    chatTabbedPane=new SIPCommTabbedPane(true,false);
    chatTabbedPane.addCloseListener(new CloseListener(){
      public void closeOperation(      MouseEvent e){
        int tabIndex=chatTabbedPane.getOverTabIndex();
        ChatPanel chatPanel=(ChatPanel)chatTabbedPane.getComponentAt(tabIndex);
        GuiActivator.getUIService().getChatWindowManager().closeChat(chatPanel);
      }
    }
);
  }
  menuBar=new MessageWindowMenuBar(this);
  this.setJMenuBar(menuBar);
  boolean isToolBarExtended=new Boolean(GuiActivator.getResources().getSettingsString("String_Node_Str")).booleanValue();
  if (isToolBarExtended)   mainToolBar=new ExtendedMainToolBar(this);
 else   mainToolBar=new MainToolBar(this);
  northPanel.add(new LogoBar(),BorderLayout.NORTH);
  northPanel.add(mainToolBar,BorderLayout.CENTER);
  northPanel.add(contactPhotoPanel,BorderLayout.EAST);
  this.mainPanel.add(northPanel,BorderLayout.NORTH);
  this.getContentPane().add(mainPanel,BorderLayout.CENTER);
  this.getContentPane().add(statusBarPanel,BorderLayout.SOUTH);
  this.initPluginComponents();
  this.setKeybindingInput(KeybindingSet.Category.CHAT);
  this.addKeybindingAction("String_Node_Str",new ForwordTabAction());
  this.addKeybindingAction("String_Node_Str",new BackwordTabAction());
  this.addKeybindingAction("String_Node_Str",new CopyAction());
  this.addKeybindingAction("String_Node_Str",new PasteAction());
  this.addKeybindingAction("String_Node_Str",new OpenSmileyAction());
  this.addKeybindingAction("String_Node_Str",new OpenHistoryAction());
  this.addKeybindingAction("String_Node_Str",new CloseAction());
  this.addWindowListener(new ChatWindowAdapter());
  int width=GuiActivator.getResources().getSettingsInt("String_Node_Str");
  int height=GuiActivator.getResources().getSettingsInt("String_Node_Str");
  this.setSize(width,height);
}

Fixed version (ground truth):
/** 
 * Creates an instance of <tt>ChatWindow</tt> by passing to it an instance of the main application window.
 * @param mainFrame the main application window
 */
public ChatWindow(){
  if (!ConfigurationManager.isWindowDecorated()) {
    this.setUndecorated(true);
  }
  this.addWindowFocusListener(this);
  this.setHierarchicallyOpaque(false);
  this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
  if (ConfigurationManager.isMultiChatWindowEnabled()) {
    chatTabbedPane=new SIPCommTabbedPane(true,false);
    chatTabbedPane.addCloseListener(new CloseListener(){
      public void closeOperation(      MouseEvent e){
        int tabIndex=chatTabbedPane.getOverTabIndex();
        ChatPanel chatPanel=(ChatPanel)chatTabbedPane.getComponentAt(tabIndex);
        GuiActivator.getUIService().getChatWindowManager().closeChat(chatPanel);
      }
    }
);
    chatTabbedPane.addChangeListener(new ChangeListener(){
      public void stateChanged(      ChangeEvent evt){
        removeNonReadChatState();
      }
    }
);
  }
  menuBar=new MessageWindowMenuBar(this);
  this.setJMenuBar(menuBar);
  boolean isToolBarExtended=new Boolean(GuiActivator.getResources().getSettingsString("String_Node_Str")).booleanValue();
  if (isToolBarExtended)   mainToolBar=new ExtendedMainToolBar(this);
 else   mainToolBar=new MainToolBar(this);
  northPanel.add(new LogoBar(),BorderLayout.NORTH);
  northPanel.add(mainToolBar,BorderLayout.CENTER);
  northPanel.add(contactPhotoPanel,BorderLayout.EAST);
  this.mainPanel.add(northPanel,BorderLayout.NORTH);
  this.getContentPane().add(mainPanel,BorderLayout.CENTER);
  this.getContentPane().add(statusBarPanel,BorderLayout.SOUTH);
  this.initPluginComponents();
  this.setKeybindingInput(KeybindingSet.Category.CHAT);
  this.addKeybindingAction("String_Node_Str",new ForwordTabAction());
  this.addKeybindingAction("String_Node_Str",new BackwordTabAction());
  this.addKeybindingAction("String_Node_Str",new CopyAction());
  this.addKeybindingAction("String_Node_Str",new PasteAction());
  this.addKeybindingAction("String_Node_Str",new OpenSmileyAction());
  this.addKeybindingAction("String_Node_Str",new OpenHistoryAction());
  this.addKeybindingAction("String_Node_Str",new CloseAction());
  this.addWindowListener(new ChatWindowAdapter());
  int width=GuiActivator.getResources().getSettingsInt("String_Node_Str");
  int height=GuiActivator.getResources().getSettingsInt("String_Node_Str");
  this.setSize(width,height);
}