Prevent crash

This commit is contained in:
M66B 2019-01-01 20:30:27 +01:00
parent 189655b39f
commit 8c5ccfd3d3
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}