mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 21:24:34 +00:00
Prevent NPE
This commit is contained in:
parent
0449baecc5
commit
8d4500c913
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue