From d8af4cb378358c7d0e6b96e244ea1fc92b68ace7 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 2 Nov 2018 19:31:27 +0000 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index e73e75f486..97bb1ef95c 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -1100,7 +1100,7 @@ public class FragmentMessages extends FragmentEx { @Override public void onLoaded() { pbWait.setVisibility(View.GONE); - if (messages.getValue().size() == 0) + if (messages.getValue() == null || messages.getValue().size() == 0) tvNoEmail.setVisibility(View.VISIBLE); }