NullPointerException fixed.

cusax-fix
Yana Stamcheva 21 years ago
parent 43c90a1f4c
commit d5a10c5f99

@ -291,10 +291,10 @@ public void closeOperation(MouseEvent e){
.getDefaultContact().getPresenceStatus();
//Add the first two tabs to the tabbed pane.
chatTabbedPane.addTab
(currentChatPanel.getDefaultContact().getDisplayName(),
(firstChatPanel.getDefaultContact().getDisplayName(),
new ImageIcon(Constants.getStatusIcon
(currentContactStatus)),
currentChatPanel);
firstChatPanel);
chatPanel = new ChatPanel(this, contactIMOperationSet);
@ -308,7 +308,7 @@ public void closeOperation(MouseEvent e){
.setTabIndex(chatTabbedPane.getTabCount() - 1);
this.contactTabsTable.put(contact.getMetaUID(),
currentChatPanel);
chatPanel);
}
this.getContentPane().add(chatTabbedPane, BorderLayout.CENTER);

Loading…
Cancel
Save