Skip to content
Snippets Groups Projects
Commit 5692c1ed authored by Adrien Béraud's avatar Adrien Béraud
Browse files

AccountManager::getContactDetails: check for info_

Change-Id: If63f898c8b7c26cbe7ca0d3a8bc91d1196d92691
parent f2538639
No related branches found
No related tags found
No related merge requests found
......@@ -569,6 +569,10 @@ AccountManager::getContacts() const
std::map<std::string, std::string>
AccountManager::getContactDetails(const std::string& uri) const
{
if (!info_) {
JAMI_ERR("getContactDetails(): account not loaded");
return {};
}
dht::InfoHash h(uri);
if (not h) {
JAMI_ERR("getContactDetails: invalid contact URI");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment