Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit 04eaa64

Browse files
committed
handle case of cookie no longer in dict (still need to investigate why)
1 parent fa9beb9 commit 04eaa64

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

js/cookies.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,14 @@ var processRemoveQueue = function() {
345345

346346
cookieEntry = cookieDict[cookieKey];
347347

348+
// rhill 2014-05-12: Apparently this can happen. I have to
349+
// investigate how (A session cookie has same name as a
350+
// persistent cookie?)
351+
if ( !cookieEntry ) {
352+
console.error('HTTP Switchboard> cookies.js/processRemoveQueue(): no cookieEntry for "%s"', cookieKey);
353+
continue;
354+
}
355+
348356
// Just in case setting was changed after cookie was put in queue.
349357
if ( cookieEntry.session === false && deleteCookies === false ) {
350358
continue;

0 commit comments

Comments
 (0)