[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emms-patches] [PATCH] * emms-browser.el (emms-browser-make-hash-by): Ch
From: |
jao |
Subject: |
[Emms-patches] [PATCH] * emms-browser.el (emms-browser-make-hash-by): Check that field is present before attempting to add entries. |
Date: |
Mon, 19 Jan 2009 08:05:54 +0100 |
From: Jose Antonio Ortega Ruiz <address@hidden>
---
lisp/emms-browser.el | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/lisp/emms-browser.el b/lisp/emms-browser.el
index dd1d316..1c0b699 100644
--- a/lisp/emms-browser.el
+++ b/lisp/emms-browser.el
@@ -656,10 +656,11 @@ compilations, etc."
'emms-browser-filter-tracks-hook track)
(setq field
(emms-browser-get-track-field track type))
- (setq existing-entry (gethash field hash))
- (if existing-entry
- (puthash field (cons track existing-entry) hash)
- (puthash field (list track) hash))))
+ (when field
+ (setq existing-entry (gethash field hash))
+ (if existing-entry
+ (puthash field (cons track existing-entry) hash)
+ (puthash field (list track) hash)))))
emms-cache-db)
hash))
--
1.5.6.5
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emms-patches] [PATCH] * emms-browser.el (emms-browser-make-hash-by): Check that field is present before attempting to add entries.,
jao <=