1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-02 21:24:34 +00:00

Prevent NPE

This commit is contained in:
M66B 2024-12-08 11:10:38 +01:00
parent 0449baecc5
commit 8d4500c913

View file

@ -800,6 +800,8 @@ public class FragmentCompose extends FragmentBase {
return; return;
Layout layout = etBody.getLayout(); Layout layout = etBody.getLayout();
if (layout == null)
return;
int line = layout.getLineForOffset(pos); int line = layout.getLineForOffset(pos);
int y = layout.getLineTop(line + 1); int y = layout.getLineTop(line + 1);