diff options
author | iNPUTmice <daniel@gultsch.de> | 2015-02-28 12:03:53 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2015-02-28 12:03:53 +0100 |
commit | 864c709c96110c8a4f7c16a3d27bb88818230f50 (patch) | |
tree | 782d38335fdb4caacae198ab1bf3e87c740d4ce3 /src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java | |
parent | 0d6907f1e093155349c0d3591668bf14e591fb8a (diff) |
catching out of memory run time exception in hasEnabledAccounts()
Diffstat (limited to 'src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java | 2 |
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 3ae3356d..28e1c47e 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 } } |