mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
return false on error when checking if local backup already exists
This commit is contained in:
@@ -347,8 +347,12 @@ class SocialBackupManagerImpl extends BdfIncomingMessageHook
|
||||
clientHelper.addLocalMessage(txn, m, meta, true, false);
|
||||
}
|
||||
|
||||
private boolean localBackupExists(Transaction txn) throws DbException {
|
||||
return !db.getGroupMetadata(txn, localGroup.getId()).isEmpty();
|
||||
private boolean localBackupExists(Transaction txn) {
|
||||
try {
|
||||
return !db.getGroupMetadata(txn, localGroup.getId()).isEmpty();
|
||||
} catch (DbException e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user