mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-20 13:59:14 +00:00
Merge pull request #1295 from alexbakker/intro-init-crash
Don't initialize VaultManager after the intro unless saving succeeds
This commit is contained in:
commit
22c9ab7c03
1 changed files with 3 additions and 2 deletions
|
@ -55,8 +55,9 @@ public class VaultManager {
|
||||||
throw new IllegalStateException("Vault manager is already initialized");
|
throw new IllegalStateException("Vault manager is already initialized");
|
||||||
}
|
}
|
||||||
|
|
||||||
_repo = new VaultRepository(_context, new Vault(), creds);
|
VaultRepository repo = new VaultRepository(_context, new Vault(), creds);
|
||||||
save();
|
repo.save();
|
||||||
|
_repo = repo;
|
||||||
|
|
||||||
if (getVault().isEncryptionEnabled()) {
|
if (getVault().isEncryptionEnabled()) {
|
||||||
startNotificationService();
|
startNotificationService();
|
||||||
|
|
Loading…
Add table
Reference in a new issue