(gnus-get-unread-articles-in-group): Make sure
[gnus] / lisp / gnus-start.el
index 0d3e7b0..f5d6c25 100644 (file)
@@ -1553,7 +1553,8 @@ newsgroup."
          (setq range (cdr range)))
        (setq num (max 0 (- (cdr active) num)))))
       ;; Set the number of unread articles.
-      (when info
+      (when (and info
+                (gnus-gethash (gnus-info-group info) gnus-newsrc-hashtb))
        (setcar (gnus-gethash (gnus-info-group info) gnus-newsrc-hashtb) num))
       num)))