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
76eb98e3f9
commit
75179459d1
1 changed files with 11 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue