Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 342de108 authored by jiezha2x's avatar jiezha2x Committed by guojingx
Browse files

Check whether the contact exists when saving the contact



Step to reproduce it on Nexus 4 with 4.4.2:
1.Launch Gallery app-->Random select one picture-->"Set picture as"
  -->"Contact photo"-->Random tap one contact-->"Crop picture"-->
  "Just once"-->crop the picture-->press home key
2.Launch People app-->delete the contact which selected in step1-->
  press home key-->Launch Gallery app again-->"Save"

When I set a picture cropped for a contact, before doing the save
operation, I delete the contact, now go on doing the save operation,
because the contact does not exist, the RawContacts is null, so the
function createRawContactDeltaList occurs a crash.

Change-Id: Ie6d26ff188790937e16915e636e4b484cacb12a4
Signed-off-by: default avatarZhangjie <jiex.z.zhang@intel.com>
Signed-off-by: default avatarguojingx <guojingx.wu@intel.com>
parent 08afec7f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment