[banshee] [PlayerEngine] Fix a potential NRE in a log message



commit a5c525c41811eef3a25b44b68aa3bba2832a2a43
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Wed Aug 4 14:48:10 2010 +0200

    [PlayerEngine] Fix a potential NRE in a log message
    
    The log message was using a field that could potentially be null,
    probably causing bgo#624588. Just don't use that field, as it's not that
    interesting anyway.

 .../Banshee.MediaEngine/PlayerEngine.cs            |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEngine.cs b/src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEngine.cs
index 2c1fd80..3c12159 100644
--- a/src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEngine.cs
+++ b/src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEngine.cs
@@ -214,7 +214,8 @@ namespace Banshee.MediaEngine
         protected virtual void OnEventChanged (PlayerEventArgs args)
         {
             if (args.Event == PlayerEvent.StartOfStream && pending_track != null) {
-                Log.DebugFormat ("OnEventChanged called with StartOfStream.  Replacing current_track: \"{0}\" with pending_track: \"{1}\"", current_track.DisplayTrackTitle, pending_track.DisplayTrackTitle);
+                Log.DebugFormat ("OnEventChanged called with StartOfStream.  Replacing current_track with pending_track: \"{0}\"",
+                                 pending_track.DisplayTrackTitle);
                 current_track = pending_track;
                 current_uri = pending_uri;
                 pending_track = null;



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