(url-have-visited-url): Don't barf if url-history-hash-table is nil.
authorEli Zaretskii <eliz@gnu.org>
Sat, 26 Feb 2005 15:23:43 +0000 (15:23 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 26 Feb 2005 15:23:43 +0000 (15:23 +0000)
lisp/url/ChangeLog
lisp/url/url-history.el

index 8bc7209..5a3bf23 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-26  James Cloos  <cloos@jhcloos.com>  (tiny change)
+
+       * url-history.el (url-have-visited-url): Don't barf if
+       url-history-hash-table is nil.
+
 2005-02-14  Michael Welsh Duggan  <md5i@cs.cmu.edu>
 
        * url-http.el (url-http-parse-headers): Test url-automatic-caching.
index 6a2d87c..e2bc9b1 100644 (file)
@@ -164,7 +164,8 @@ user for what type to save as."
 
 (defun url-have-visited-url (url)
   (url-do-setup)
-  (gethash url url-history-hash-table nil))
+  (and url-history-hash-table
+       (gethash url url-history-hash-table nil)))
 
 (defun url-completion-function (string predicate function)
   (url-do-setup)