diff --git a/src/phonedirectorymodel.cpp b/src/phonedirectorymodel.cpp
index 701401188bd72c7d94cad00484575a3aafc4c178..db352611d1bb279ccfbfbb8bda5d7f405da4a616 100644
--- a/src/phonedirectorymodel.cpp
+++ b/src/phonedirectorymodel.cpp
@@ -322,6 +322,9 @@ PhoneNumber* PhoneDirectoryModel::getNumber(const QString& uri, const QString& t
  */
 PhoneNumber* PhoneDirectoryModel::getNumber(const QString& uri, Account* account, const QString& type)
 {
+   if (!account)
+      return getNumber(uri,type);
+
    const QString strippedUri =  PhoneNumber::stripUri(uri);
 
    //Try to use a PhoneNumber with a contact when possible, work only after the