Fixes NPE when focusing multichat windows.

cusax-fix 4758
Damian Minkov 13 years ago
parent 818ace92b4
commit 40542f75c0

@ -344,7 +344,9 @@ public void chatChanged(ChatPanel chatPanel)
sendFileButton.setEnabled(
chatPanel.findFileTransferChatTransport() != null);
new UpdateCallButtonWorker(contact).start();
// null when using chat rooms
if(contact != null)
new UpdateCallButtonWorker(contact).start();
changeHistoryButtonsState(chatPanel);
}

Loading…
Cancel
Save