[banshee] UnknownTrackInfo: Avoid NRE if URI is null (bgo#639044)



commit dc966984af1a65d598bfb08c9c0391b8cd34e935
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Wed Jan 12 21:27:25 2011 +0100

    UnknownTrackInfo: Avoid NRE if URI is null (bgo#639044)

 .../Banshee.Collection/UnknownTrackInfo.cs         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Core/Banshee.Collection/UnknownTrackInfo.cs b/src/Core/Banshee.Core/Banshee.Collection/UnknownTrackInfo.cs
index 504cbcc..07619ee 100644
--- a/src/Core/Banshee.Core/Banshee.Collection/UnknownTrackInfo.cs
+++ b/src/Core/Banshee.Core/Banshee.Collection/UnknownTrackInfo.cs
@@ -37,7 +37,7 @@ namespace Banshee.Collection
         public UnknownTrackInfo(SafeUri uri)
         {
             Uri = uri;
-            IsLive = !uri.IsFile;
+            IsLive = (uri == null ? true : !uri.IsFile);
         }
     }
 }



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