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

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2024-10-28 15:18:19 -04:00
1 parent ccdbec088f
commit 2c0fc43137
1 file changed
+4
@@ -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;
}