mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 19:34:15 +01:00
Catch compute exceptions
This commit is contained in:
@@ -112,6 +112,10 @@ public abstract class ComputableLiveData<T> {
|
||||
if (computed) {
|
||||
mLiveData.postValue(value);
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
// java.lang.IllegalStateException: Couldn't read row xxx column yyy
|
||||
eu.faircode.email.Log.e(ex);
|
||||
mInvalid.set(true);
|
||||
} finally {
|
||||
// release compute lock
|
||||
mComputing.set(false);
|
||||
|
||||
Reference in New Issue
Block a user