summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus-sum.el
diff options
context:
space:
mode:
authorEric Abrahamsen <eric@ericabrahamsen.net>2019-03-31 08:36:56 -0700
committerEric Abrahamsen <eric@ericabrahamsen.net>2019-03-31 08:36:56 -0700
commit99be0aba4defb8377cb148f7805ea07babc6182f (patch)
treecd02cbb5dd12a3c435e4248ba2998c6260d4a399 /lisp/gnus/gnus-sum.el
parent6d7e18e8015024ef06570e80086f58e834d6d4b6 (diff)
downloademacs-99be0aba4defb8377cb148f7805ea07babc6182f.tar.gz
Check gnus-newsgroup-dependencies is hash table in gnus-id-to-thread
* lisp/gnus/gnus-sum.el (gnus-id-to-thread): If dependencies haven't been initialized yet, don't blow up. Mimicks previous (non hasht table) behavior.
Diffstat (limited to 'lisp/gnus/gnus-sum.el')
-rw-r--r--lisp/gnus/gnus-sum.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index f09c0fbb58e..f5853a24305 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -4750,7 +4750,8 @@ If LINE, insert the rebuilt thread starting on line LINE."
(defun gnus-id-to-thread (id)
"Return the (sub-)thread where ID appears."
- (gethash id gnus-newsgroup-dependencies))
+ (when (hash-table-p gnus-newsgroup-dependencies)
+ (gethash id gnus-newsgroup-dependencies)))
(defun gnus-id-to-article (id)
"Return the article number of ID."