mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
[PM-14241] Checking if Timber tree has been added before trying to remove it (#4194)
This commit is contained in:
parent
1c10a94109
commit
d71389ab02
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class LogsManagerImpl(
|
||||||
}
|
}
|
||||||
if (value) {
|
if (value) {
|
||||||
Timber.plant(nonfatalErrorTree)
|
Timber.plant(nonfatalErrorTree)
|
||||||
} else {
|
} else if (Timber.forest().contains(nonfatalErrorTree)) {
|
||||||
Timber.uproot(nonfatalErrorTree)
|
Timber.uproot(nonfatalErrorTree)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue