From 1bc5ddde9ded21ed65e18ff7cdb483ea1aaa1d7a Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 16 Aug 2024 13:08:58 +0200 Subject: [PATCH] Reduce logging --- app/src/main/java/eu/faircode/email/Log.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index bf8c277d0c..1e51f77e84 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -1261,6 +1261,21 @@ public class Log { */ return false; + if (ex instanceof NullPointerException && + stack.length > 0 && + "android.widget.Editor$ActionPinnedPopupWindow".equals(stack[0].getClassName()) && + "computeLocalPosition".equals(stack[0].getMethodName())) + /* + java.lang.NullPointerException: Attempt to invoke virtual method 'float android.text.Layout.getPrimaryHorizontal(int)' on a null object reference + at android.widget.Editor$ActionPinnedPopupWindow.computeLocalPosition(Editor.java:4134) + at android.widget.Editor$PinnedPopupWindow.show(Editor.java:3737) + at android.widget.Editor$ActionPinnedPopupWindow.show(Editor.java:4282) + at android.widget.Editor$ActionPopupWindow.show(Editor.java:5224) + at android.widget.Editor$HandleView$2.run(Editor.java:6783) + at android.os.Handler.handleCallback(Handler.java:938) + */ + return false; + if (ex instanceof IndexOutOfBoundsException && stack.length > 0 && "android.text.SpannableStringInternal".equals(stack[0].getClassName()) &&