Allow changing the password if no password slot is present

pull/498/head
Alexander Bakker 5 years ago
parent c73c29d2ec
commit 3a5a185940

@ -828,7 +828,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…
Cancel
Save