diff --git a/programs/mutant-5/swen90006/passbook/PassBook.java b/programs/mutant-5/swen90006/passbook/PassBook.java index 1aea6a239dfab72529b6d9ec08458038033c28f3..0260e091755ae1f7789637bdbc31b3258bbb6207 100644 --- a/programs/mutant-5/swen90006/passbook/PassBook.java +++ b/programs/mutant-5/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); } @@ -250,7 +250,7 @@ public class PassBook Pair<String, String> pair = pt.get(url); //if this returned nothing, the user does not have a login for this url - if (pair == null) { + if (!(pair == null)) { throw new NoSuchURLException(passbookUsername, url); }