From 41c86551ae71ecf64f0ae40339fecda848a509de Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 26 Aug 2007 17:32:31 +0200 Subject: [PATCH] Initialize a song's properties to an empty hash. Seems sometimes we try to access the properties before we got them from the daemon. --- lib/playlist_item.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/playlist_item.rb b/lib/playlist_item.rb index 91b5bea..5b89ea4 100644 --- a/lib/playlist_item.rb +++ b/lib/playlist_item.rb @@ -13,7 +13,7 @@ class PlaylistItem @selected = false @hilighted = false - @props = nil + @props = {} @xmms.medialib_get_info(id).notifier do |res| self.properties = res.value -- 2.30.2