banshee r4389 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.MediaEngine



Author: gburt
Date: Sat Aug 16 22:38:23 2008
New Revision: 4389
URL: http://svn.gnome.org/viewvc/banshee?rev=4389&view=rev

Log:
2008-08-16  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEngineService.cs:
	Avoid NRE (BGO #546864).


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEngineService.cs

Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEngineService.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEngineService.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEngineService.cs	Sat Aug 16 22:38:23 2008
@@ -267,7 +267,7 @@
         
         private void OpenPlay (TrackInfo track, bool play)
         {
-            if (!track.CanPlay || OnTrackIntercept (track)) {
+            if (track == null || !track.CanPlay || OnTrackIntercept (track)) {
                 return;
             }
         



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]