# HG changeset patch # User Lars Magne Ingebrigtsen # Date 836350665 0 # Node ID 15f033c2250f24ef77d08dc8a3ba5b42863cfeab # Parent e49a2eb71713eeb1240bf05096820450dfa41cac * gnus-cache.el (gnus-cache-possibly-alter-active): Check for gnus-cache-active-hashtb before using it. diff -r e49a2eb71713 -r 15f033c2250f lisp/gnus-cache.el --- a/lisp/gnus-cache.el Tue Jul 02 16:27:07 1996 +0000 +++ b/lisp/gnus-cache.el Tue Jul 02 23:37:45 1996 +0000 @@ -236,13 +236,14 @@ (defun gnus-cache-possibly-alter-active (group active) "Alter the ACTIVE info for GROUP to reflect the articles in the cache." - (let ((cache-active (gnus-gethash group gnus-cache-active-hashtb))) - (and cache-active - (< (car cache-active) (car active)) - (setcar active (car cache-active))) - (and cache-active - (> (cdr cache-active) (cdr active)) - (setcdr active (cdr cache-active))))) + (when gnus-cache-active-hashtb + (let ((cache-active (gnus-gethash group gnus-cache-active-hashtb))) + (and cache-active + (< (car cache-active) (car active)) + (setcar active (car cache-active))) + (and cache-active + (> (cdr cache-active) (cdr active)) + (setcdr active (cdr cache-active)))))) (defun gnus-cache-retrieve-headers (articles group &optional fetch-old) "Retrieve the headers for ARTICLES in GROUP."