From 497750175749ed8f5f85263b760890225da3ada9 Mon Sep 17 00:00:00 2001 From: Lin Fan <fanl4@student.unimelb.edu.au> Date: Thu, 5 Sep 2019 21:29:22 +1000 Subject: [PATCH] Update PassBook.java --- programs/mutant-2/swen90006/passbook/PassBook.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/mutant-2/swen90006/passbook/PassBook.java b/programs/mutant-2/swen90006/passbook/PassBook.java index 8f710dc..56f99af 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); } @@ -243,7 +243,7 @@ public class PassBook PasswordTable pt = details.get(passbookUsername); //if this returned nothing, the user has no details for any url - if (pt != null) { + if (pt == null) { throw new NoSuchURLException(passbookUsername, url); } -- GitLab