1
0
mirror of https://github.com/etesync/android synced 2024-11-17 05:19:12 +00:00

Fix crash when viewing contacts with empty (but existing) nicknames.

This commit is contained in:
Tom Hacohen 2018-09-14 18:27:55 +01:00
parent 6a177b1b7e
commit 5e568ec43e

View File

@ -359,7 +359,7 @@ public class JournalItemActivity extends BaseActivity implements Refreshable {
} }
// NICKNAME // NICKNAME
if (contact.nickName != null) { if (contact.nickName != null && contact.nickName.getValues().size() > 0) {
addInfoItem(view.getContext(), aboutCard, getString(R.string.journal_item_nickname), null, contact.nickName.getValues().get(0)); addInfoItem(view.getContext(), aboutCard, getString(R.string.journal_item_nickname), null, contact.nickName.getValues().get(0));
} }