aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2015-02-28 12:03:53 +0100
committeriNPUTmice <daniel@gultsch.de>2015-02-28 12:03:53 +0100
commit864c709c96110c8a4f7c16a3d27bb88818230f50 (patch)
tree782d38335fdb4caacae198ab1bf3e87c740d4ce3
parent0d6907f1e093155349c0d3591668bf14e591fb8a (diff)
catching out of memory run time exception in hasEnabledAccounts()
-rw-r--r--src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java b/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java
index 3ae3356db..28e1c47e7 100644
--- a/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java
+++ b/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java
@@ -278,6 +278,8 @@ public class DatabaseBackend extends SQLiteOpenHelper {
return (count > 0);
} catch (SQLiteCantOpenDatabaseException e) {
return true; // better safe than sorry
+ } catch (RuntimeException e) {
+ return true; // better safe than sorry
}
}