Prevent crash due to "Exception while computing database"

This commit is contained in:
M66B
2019-07-27 13:53:30 +02:00
parent 9ab39ea3ea
commit 41dfa81fb1
2 changed files with 21 additions and 2 deletions

View File

@@ -89,8 +89,10 @@ class RoomTrackingLiveData<T> extends LiveData<T> {
try {
value = mComputeFunction.call();
} catch (Exception e) {
throw new RuntimeException("Exception while computing database"
+ " live data.", e);
eu.faircode.email.Log.w(e);
//throw new RuntimeException("Exception while computing database"
// + " live data.", e);
computed = false;
}
}
if (computed) {