Require that accounts be non-stale when getting/setting backup vouchers

This commit is contained in:
Jon Chambers 2024-10-25 15:40:53 -04:00 committed by Jon Chambers
parent ccdbec088f
commit 2c0fc43137
1 changed files with 4 additions and 0 deletions

View File

@ -518,10 +518,14 @@ public class Account {
}
public @Nullable BackupVoucher getBackupVoucher() {
requireNotStale();
return backupVoucher;
}
public void setBackupVoucher(final @Nullable BackupVoucher backupVoucher) {
requireNotStale();
this.backupVoucher = backupVoucher;
}