Fix crash when contact is null in history fragment

This commit is contained in:
Erwan Croze 2018-07-25 15:55:08 +02:00
parent b065907f35
commit fa206360ce

View file

@ -506,7 +506,7 @@ public class HistoryListFragment extends Fragment implements OnClickListener, On
holder.contactPicture.setImageResource(R.drawable.avatar_medium_unregistered);
}
displayName = c.getFullName();
displayName = (c != null) ? c.getFullName() : null;
if (displayName == null) {
holder.contact.setText(LinphoneUtils.getAddressDisplayName(sipUri));