mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-19 20:48:08 +00:00
Fix crash in history view
This commit is contained in:
parent
67bb96a4ab
commit
8844d0edde
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ public class HistoryDetailFragment extends Fragment implements OnClickListener {
|
|||
} else if (securityLevel == ChatRoomSecurityLevel.Encrypted) {
|
||||
contactPicture.setImageResource(R.drawable.avatar_medium_secure1);
|
||||
} else {
|
||||
ZrtpPeerStatus zrtpStatus = getZrtpStatus(LinphoneManager.getLc(), contact.getFriend().getAddress().asStringUriOnly());
|
||||
ZrtpPeerStatus zrtpStatus = getZrtpStatus(LinphoneManager.getLc(), (contact != null) ? contact.getFriend().getAddress().asStringUriOnly() : lAddress.asStringUriOnly());
|
||||
if (zrtpStatus == ZrtpPeerStatus.Valid) {
|
||||
contactPicture.setImageResource(R.drawable.avatar_medium_secure2);
|
||||
} else if (zrtpStatus == ZrtpPeerStatus.Invalid) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue