Skip to content
Snippets Groups Projects
Commit 28305629 authored by Lin Fan's avatar Lin Fan
Browse files

Update PassBook.java

parent aa6aa6d2
No related branches found
No related tags found
No related merge requests found
Pipeline #5434 passed
......@@ -198,14 +198,14 @@ public class PassBook
{
//check that the session ID exists
String passbookUsername = userIDs.get(sessionID);
if (passbookUsername == null) {
if (passbookUsername != null) {
throw new InvalidSessionIDException(sessionID);
}
else if (!Arrays.asList(VALID_URL_PROTOCOLS).contains(url.getProtocol())) {
throw new MalformedURLException(passbookUsername);
}
PasswordTable pt = details.get(sessionID);
PasswordTable pt = details.get(passbookUsername);
if (urlUsername == null || urlPassword == null) {
pt.remove(url);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment