mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-22 17:03:52 +02:00
Prevent NPE
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user