From d71389ab020c33b4ab4e50c2cb4b8c55edbe26f1 Mon Sep 17 00:00:00 2001 From: aj-rosado <109146700+aj-rosado@users.noreply.github.com> Date: Wed, 30 Oct 2024 13:12:20 +0100 Subject: [PATCH] [PM-14241] Checking if Timber tree has been added before trying to remove it (#4194) --- .../x8bit/bitwarden/data/platform/manager/LogsManagerImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/standard/java/com/x8bit/bitwarden/data/platform/manager/LogsManagerImpl.kt b/app/src/standard/java/com/x8bit/bitwarden/data/platform/manager/LogsManagerImpl.kt index 0947f8b25..060513ce9 100644 --- a/app/src/standard/java/com/x8bit/bitwarden/data/platform/manager/LogsManagerImpl.kt +++ b/app/src/standard/java/com/x8bit/bitwarden/data/platform/manager/LogsManagerImpl.kt @@ -30,7 +30,7 @@ class LogsManagerImpl( } if (value) { Timber.plant(nonfatalErrorTree) - } else { + } else if (Timber.forest().contains(nonfatalErrorTree)) { Timber.uproot(nonfatalErrorTree) } }