Adds error logging when no metacontact found for contactID, used for opening chat window for recent chats source contacts from the UI.

fix-message-formatting 5157
Damian Minkov 12 years ago
parent 5d49287ed0
commit 132a76f916

@ -945,6 +945,15 @@ public void startChat(String contactID, ProtocolProviderService pps)
MetaContact metaContact = GuiActivator.getContactListService()
.findMetaContactByContact(c);
if(metaContact == null)
{
logger.error(
"Chat not started. Cannot find metacontact for "
+ contactID + " and protocol:" + pps);
return;
}
startChat(metaContact, c, false);
return;
}

Loading…
Cancel
Save