From 9bcafb20655e64e90c0468116aaf5145e6ea0615 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 9 Aug 2020 08:16:45 +0200 Subject: [PATCH] Filter exception --- app/src/main/java/eu/faircode/email/Log.java | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index 6e2a1fdd3a..1e41781faf 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -857,6 +857,30 @@ public class Log { */ return false; + if (stack.length > 0 && + stack[0].getClassName().equals("android.os.Parcel") && + (stack[0].getMethodName().equals("createException") || + stack[0].getMethodName().equals("readException"))) + /* + java.lang.IllegalArgumentException + at android.os.Parcel.createException(Parcel.java:1954) + at android.os.Parcel.readException(Parcel.java:1918) + at android.os.Parcel.readException(Parcel.java:1868) + at android.view.IWindowSession$Stub$Proxy.addToDisplay(IWindowSession.java:826) + at android.view.ViewRootImpl.setView(ViewRootImpl.java:758) + at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:356) + at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93) + at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3906) + + java.lang.NullPointerException: Attempt to invoke virtual method 'int com.android.server.job.controllers.JobStatus.getUid()' on a null object reference + at android.os.Parcel.readException(Parcel.java:1605) + at android.os.Parcel.readException(Parcel.java:1552) + at android.app.job.IJobCallback$Stub$Proxy.jobFinished(IJobCallback.java:167) + at android.app.job.JobService$JobHandler.handleMessage(JobService.java:147) + at android.os.Handler.dispatchMessage(Handler.java:102) + */ + return false; + if (BuildConfig.BETA_RELEASE) return true;