# HG changeset patch # User Michael Albinus # Date 1255269630 0 # Node ID 42674c5ffbe74bdf6482ec1212864c2f3cdcc002 # Parent e7c777c6e230f1ee318897ec1e4ed6d49865ed16 * net/tramp-cache.el (tramp-flush-connection-property): The hash can be empty. diff -r e7c777c6e230 -r 42674c5ffbe7 lisp/net/tramp-cache.el --- a/lisp/net/tramp-cache.el Sun Oct 11 13:59:28 2009 +0000 +++ b/lisp/net/tramp-cache.el Sun Oct 11 14:00:30 2009 +0000 @@ -240,10 +240,12 @@ (aset key 3 nil)) (tramp-message key 7 "%s %s" key - (let (properties) - (maphash - (lambda (x y) (add-to-list 'properties x 'append)) - (gethash key tramp-cache-data)) + (let ((hash (gethash key tramp-cache-data)) + properties) + (if (hash-table-p hash) + (maphash + (lambda (x y) (add-to-list 'properties x 'append)) + (gethash key tramp-cache-data))) properties)) (setq tramp-cache-data-changed t) (remhash key tramp-cache-data))