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-06 15:48:06 +01:00
parent 76eb98e3f9
commit 75179459d1

View file

@ -423,7 +423,17 @@ public class FragmentPop extends FragmentBase {
// Workaround odd focus issue
if (scroll != null)
try {
scroll.requestChildFocus(null, null);
} catch (Throwable ex) {
/*
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.view.View.getRevealOnFocusHint()' on a null object reference
at android.widget.ScrollView.requestChildFocus(ScrollView.java:1471)
at eu.faircode.email.FragmentPop.onViewCreated(SourceFile:9)
at androidx.fragment.app.Fragment.performViewCreated(SourceFile:15)
*/
Log.w(ex);
}
}
private void onSave(boolean should) {