mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Ignore crash/bug in Android
This commit is contained in:
parent
9b868e71d2
commit
d6824bdfcd
1 changed files with 16 additions and 0 deletions
|
@ -917,6 +917,22 @@ public class Log {
|
|||
*/
|
||||
return false;
|
||||
|
||||
if (ex instanceof NullPointerException &&
|
||||
stack.length > 0 &&
|
||||
"android.app.ActivityThread".equals(stack[0].getClassName()) &&
|
||||
"handleStopActivity".equals(stack[0].getMethodName()))
|
||||
/*
|
||||
Android: 6.0.1
|
||||
java.lang.NullPointerException: Attempt to read from field 'android.app.Activity android.app.ActivityThread$ActivityClientRecord.activity' on a null object reference
|
||||
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4766)
|
||||
at android.app.ActivityThread.access$1400(ActivityThread.java:221)
|
||||
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1823)
|
||||
at android.os.Handler.dispatchMessage(Handler.java:102)
|
||||
at android.os.Looper.loop(Looper.java:158)
|
||||
at android.app.ActivityThread.main(ActivityThread.java:7224)
|
||||
*/
|
||||
return false;
|
||||
|
||||
if (ex instanceof IndexOutOfBoundsException &&
|
||||
stack.length > 0 &&
|
||||
"android.text.SpannableStringInternal".equals(stack[0].getClassName()) &&
|
||||
|
|
Loading…
Reference in a new issue