Catch compute exceptions

This commit is contained in:
M66B
2020-06-08 19:15:59 +02:00
parent bf672a4116
commit 25387c5601

View File

@@ -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);