[banshee/stable] Add null check now necessary due to performance fix



commit 0f2c85cb6cc9af076437d9512c678a6c68fc4f5b
Author: Aaron Bockover <abockover novell com>
Date:   Mon Apr 27 22:47:00 2009 -0400

    Add null check now necessary due to performance fix
---
 .../NotificationAreaService.cs                     |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
index 0b4e2aa..c966862 100644
--- a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
+++ b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
@@ -375,6 +375,10 @@ namespace Banshee.NotificationArea
         
         private void ToggleRatingMenuSensitive () 
         {
+            if (rating_menu_item == null) {
+                return;
+            }
+            
             if (ServiceManager.PlayerEngine.CurrentTrack is DatabaseTrackInfo) {
                 rating_menu_item.Show ();
             } else {



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