Skip to content
Snippets Groups Projects
Commit 9a1011a5 authored by Emmanuel Lepage Vallée's avatar Emmanuel Lepage Vallée
Browse files

Fix nullptr dereference caused by a corrupted history file

parent 9e274908
Branches
Tags
No related merge requests found
...@@ -322,6 +322,9 @@ PhoneNumber* PhoneDirectoryModel::getNumber(const QString& uri, const QString& t ...@@ -322,6 +322,9 @@ PhoneNumber* PhoneDirectoryModel::getNumber(const QString& uri, const QString& t
*/ */
PhoneNumber* PhoneDirectoryModel::getNumber(const QString& uri, Account* account, const QString& type) PhoneNumber* PhoneDirectoryModel::getNumber(const QString& uri, Account* account, const QString& type)
{ {
if (!account)
return getNumber(uri,type);
const QString strippedUri = PhoneNumber::stripUri(uri); const QString strippedUri = PhoneNumber::stripUri(uri);
//Try to use a PhoneNumber with a contact when possible, work only after the //Try to use a PhoneNumber with a contact when possible, work only after the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment