From 8c5ccfd3d35af758bba9aed8e2338d35aed029ab Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 1 Jan 2019 20:30:27 +0100 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 7dd231b3bd..fa1632a4aa 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -207,7 +207,7 @@ public class FragmentCompose extends FragmentEx { tvExtraPrefix.setText(at < 0 ? null : identity.email.substring(0, at)); tvExtraSuffix.setText(at < 0 ? null : identity.email.substring(at)); if (pro) { - tvSignature.setText(identity == null ? null : Html.fromHtml(identity.signature)); + tvSignature.setText(identity == null || identity.signature == null ? null : Html.fromHtml(identity.signature)); grpSignature.setVisibility(identity == null || TextUtils.isEmpty(identity.signature) ? View.GONE : View.VISIBLE); } }