From 3d5d4c1f6873a0b9cbae5ce1ae9674b57670a0b1 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 21 Jun 2020 13:00:49 +0200 Subject: [PATCH] Filter exception --- app/src/main/java/eu/faircode/email/Log.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index 98763f31f7..afe5efa462 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -626,6 +626,19 @@ public class Log { */ return false; + if (ex instanceof IllegalMonitorStateException) + /* + java.lang.IllegalMonitorStateException + at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.signal(AbstractQueuedSynchronizer.java:1959) + at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1142) + at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:849) + at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1092) + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152) + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) + at java.lang.Thread.run(Thread.java:764) + */ + return false; + if (ex instanceof RuntimeException && ex.getCause() instanceof TransactionTooLargeException) // Some Android versions (Samsung) send images as clip data