[banshee] Avoid NRE in ColumnCellStatusIndicator



commit 9270fc663ff9e0bbf70248cc4f90dd2e750fc2ff
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Sun Jul 5 10:36:42 2009 -0500

    Avoid NRE in ColumnCellStatusIndicator

 .../ColumnCellStatusIndicator.cs                   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellStatusIndicator.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellStatusIndicator.cs
index c9c763d..06d82d9 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellStatusIndicator.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellStatusIndicator.cs
@@ -131,7 +131,7 @@ namespace Banshee.Collection.Gui
                 icon_index = GetIconIndex (track);
             }
             
-            if (icon_index < 0) {
+            if (icon_index < 0 || pixbufs == null || pixbufs[icon_index] == null) {
                 return;
             }
             



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