Skip to content
Snippets Groups Projects
Commit 24e642a6 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Olivier SOLDANO
Browse files

profilemodel: fix nullptr access


my previous patch [cm: replace BLANK() by default ctor]
causes a nullptr access in ProfileModelPrivate::slotAccountAdded()
There is a call to acc->contactMethod() that returns a nullptr.

I really tried to understand this call and its impact...
... no success!
Removing the line seems to have no effect during tests on Gnome client.

LRC is magic!

Change-Id: Icdd33989e5d90bfb93227d82354643269fe944ff
Reviewed-by: default avatarOlivier Soldano <olivier.soldano@savoirfairelinux.com>
parent 01c37216
No related branches found
No related tags found
No related merge requests found
......@@ -133,8 +133,6 @@ void ProfileModelPrivate::slotAccountAdded(Account* acc)
currentNode->children << account_pro;
q_ptr->endInsertRows();
acc->contactMethod()->setPerson(currentProfile->person());
if (changed)
currentProfile->save();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment