]> git.eshelyaron.com Git - emacs.git/commitdiff
Check gnus-newsgroup-dependencies is hash table in gnus-id-to-thread
authorEric Abrahamsen <eric@ericabrahamsen.net>
Sun, 31 Mar 2019 15:36:56 +0000 (08:36 -0700)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Sun, 31 Mar 2019 15:36:56 +0000 (08:36 -0700)
* 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.

lisp/gnus/gnus-sum.el

index f09c0fbb58e05575ace4c6d8193343b00321d7a4..f5853a243051f3e793943094121e19c3110a4972 100644 (file)
@@ -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."