From 5e568ec43e9afd4b04d156a43d8e0a5ddc89b5bc Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Fri, 14 Sep 2018 18:27:55 +0100 Subject: [PATCH] Fix crash when viewing contacts with empty (but existing) nicknames. --- .../java/com/etesync/syncadapter/ui/JournalItemActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/etesync/syncadapter/ui/JournalItemActivity.java b/app/src/main/java/com/etesync/syncadapter/ui/JournalItemActivity.java index dc8d554d..cd6cb0b6 100644 --- a/app/src/main/java/com/etesync/syncadapter/ui/JournalItemActivity.java +++ b/app/src/main/java/com/etesync/syncadapter/ui/JournalItemActivity.java @@ -359,7 +359,7 @@ public class JournalItemActivity extends BaseActivity implements Refreshable { } // 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)); }