diff --git a/programs/mutant-2/swen90006/passbook/PassBook.java b/programs/mutant-2/swen90006/passbook/PassBook.java index 56f99afe120386288a335ed187b51de8815c41f9..b77d8147b6e93d7996771d5ba56669b89db0654f 100644 --- a/programs/mutant-2/swen90006/passbook/PassBook.java +++ b/programs/mutant-2/swen90006/passbook/PassBook.java @@ -84,7 +84,7 @@ public class PassBook } //check the passphrase strength else { - if (passphrase.length() <= MINIMUM_PASSPHRASE_LENGTH) { + if (passphrase.length() < MINIMUM_PASSPHRASE_LENGTH) { throw new WeakPassphraseException(passphrase); } @@ -206,7 +206,7 @@ public class PassBook } PasswordTable pt = details.get(passbookUsername); - if (urlUsername == null || urlPassword == null) { + if (urlUsername == null && urlPassword == null) { pt.remove(url); } else {