Fix for N_SE-48378 N_SE-48015
[apps/osp/Call.git] / src / CallEndCallForm.cpp
index e9b3b80..351aa6e 100644 (file)
@@ -385,7 +385,7 @@ EndCallForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& cu
                ShowPersonDetails(*__pContactNumber, IDC_CALLER1_LABEL, IDC_CALLER1_BIGPHOTO_LABEL,pEndCall);
                //If call is hidden means contact number is empty,
                //or if call is from known number(i.e present in contacts db), Then do NOT show "Add to Contact" button.
-               if (pEndCall->GetContactInfo() != null)
+               if (pEndCall->GetContactNumber().IsEmpty() == false)
                {
                        //Check if contact is deleted in mean time.
                        Contact* pContact = __pCallPresentor->GetContactN(pEndCall->GetContactNumber());