mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-25 00:06:08 +00:00
Merge pull request #498 from alexbakker/slot-null
Allow changing the password if no password slot is present
This commit is contained in:
commit
94ebc08097
1 changed files with 3 additions and 1 deletions
|
@ -822,7 +822,9 @@ public class PreferencesFragment extends PreferenceFragmentCompat {
|
|||
|
||||
// remove the old master password slot
|
||||
PasswordSlot oldSlot = creds.getSlots().find(PasswordSlot.class);
|
||||
slots.remove(oldSlot);
|
||||
if (oldSlot != null) {
|
||||
slots.remove(oldSlot);
|
||||
}
|
||||
|
||||
// add the new master password slot
|
||||
slots.add(slot);
|
||||
|
|
Loading…
Add table
Reference in a new issue