1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 07:42:52 +00:00

Prevent NPE

This commit is contained in:
M66B 2024-12-04 08:21:22 +01:00
parent 4d500cf7bc
commit 1e300cd8af

View file

@ -5154,7 +5154,7 @@ public class FragmentCompose extends FragmentBase {
boolean ime = true;
try {
WindowInsetsCompat insets = ViewCompat.getRootWindowInsets(focus);
WindowInsetsCompat insets = (focus == null ? null : ViewCompat.getRootWindowInsets(focus));
if (insets != null)
ime = insets.isVisible(WindowInsetsCompat.Type.ime());
} catch (Throwable ex) {