changeset 1491:ccf8931ff0bd trunk

[svn] - don't crash if there's no available tuple
author nenolod
date Fri, 04 Aug 2006 00:49:01 -0700
parents ded11c19cc0a
children b2eac4a4a22c
files ChangeLog Plugins/General/notify/notify.c
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Aug 03 22:54:57 2006 -0700
+++ b/ChangeLog	Fri Aug 04 00:49:01 2006 -0700
@@ -1,3 +1,12 @@
+2006-08-04 05:54:57 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [1894]
+  - do things in a less hackish way
+  
+
+  Changes:        Modified:
+  +6 -6           trunk/Plugins/General/notify/notify.c  
+
+
 2006-08-04 05:54:05 +0000  William Pitcock <nenolod@nenolod.net>
   revision [1892]
   - use tuples (and build tuples if they aren't there :P)
--- a/Plugins/General/notify/notify.c	Thu Aug 03 22:54:57 2006 -0700
+++ b/Plugins/General/notify/notify.c	Fri Aug 04 00:49:01 2006 -0700
@@ -62,6 +62,9 @@
 
 		tuple = playlist_get_tuple(pos);
 
+		if (tuple == NULL)
+			return;
+
 		tmpbuf = g_strdup_printf("<b>%s</b>\n<i>%s</i>\n%s",
 			tuple->performer,
 			tuple->album_name,