diff --git a/app/src/main/java/com/beemdevelopment/aegis/vault/VaultManager.java b/app/src/main/java/com/beemdevelopment/aegis/vault/VaultManager.java index 3fbfd294..c9191424 100644 --- a/app/src/main/java/com/beemdevelopment/aegis/vault/VaultManager.java +++ b/app/src/main/java/com/beemdevelopment/aegis/vault/VaultManager.java @@ -55,8 +55,9 @@ public class VaultManager { throw new IllegalStateException("Vault manager is already initialized"); } - _repo = new VaultRepository(_context, new Vault(), creds); - save(); + VaultRepository repo = new VaultRepository(_context, new Vault(), creds); + repo.save(); + _repo = repo; if (getVault().isEncryptionEnabled()) { startNotificationService();