mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 05:34:51 +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;
|
||||
|
||||
Layout layout = etBody.getLayout();
|
||||
if (layout == null)
|
||||
return;
|
||||
int line = layout.getLineForOffset(pos);
|
||||
int y = layout.getLineTop(line + 1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue