From d44e52fffbe1289971f715795f8ef85978178ff0 Mon Sep 17 00:00:00 2001 From: Lin Fan <fanl4@student.unimelb.edu.au> Date: Fri, 6 Sep 2019 13:28:00 +1000 Subject: [PATCH] Update PassBook.java --- programs/mutant-4/swen90006/passbook/PassBook.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/mutant-4/swen90006/passbook/PassBook.java b/programs/mutant-4/swen90006/passbook/PassBook.java index dd1a65d..674a8a9 100644 --- a/programs/mutant-4/swen90006/passbook/PassBook.java +++ b/programs/mutant-4/swen90006/passbook/PassBook.java @@ -39,7 +39,7 @@ public class PassBook public final static int MINIMUM_PASSPHRASE_LENGTH = 8; /** Valid URL protocols for the passbook */ - public final static String [] VALID_URL_PROTOCOLS = {"http", "https"}; + public final static String [] VALID_URL_PROTOCOLS = {"http", "https", "ftp"}; //The passphrases (master passwords) for all users private Map<String, String> passphrases; @@ -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 (pt == null) { + if (pair == null) { throw new NoSuchURLException(passbookUsername, url); } -- GitLab