[banshee/1.5.1-fixes: 43/56] Fix NRE in TrackInfoDisplay (BGO #604180)



commit ee6bf0dcf20ab77ec8942c4fd2577ff27388080b
Author: Andrés G. Aragoneses <aaragoneses novell com>
Date:   Wed Dec 9 10:09:08 2009 -0800

    Fix NRE in TrackInfoDisplay (BGO #604180)
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 .../Banshee.Gui.Widgets/TrackInfoDisplay.cs        |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
index 46e558a..30d1910 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
@@ -329,7 +329,8 @@ namespace Banshee.Gui.Widgets
         
         private bool IdleTimeout ()
         {
-            if (ServiceManager.PlayerEngine.CurrentTrack == null || 
+            if (ServiceManager.PlayerEngine == null ||
+                ServiceManager.PlayerEngine.CurrentTrack == null ||
                 ServiceManager.PlayerEngine.CurrentState == PlayerState.Idle) {
                 incoming_track = null;
                 incoming_image = null;



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