mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-22 07:39:53 +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);
|
clientHelper.addLocalMessage(txn, m, meta, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean localBackupExists(Transaction txn) throws DbException {
|
private boolean localBackupExists(Transaction txn) {
|
||||||
return !db.getGroupMetadata(txn, localGroup.getId()).isEmpty();
|
try {
|
||||||
|
return !db.getGroupMetadata(txn, localGroup.getId()).isEmpty();
|
||||||
|
} catch (DbException e) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
|||||||
Reference in New Issue
Block a user