[banshee] [WrapLabel] Fix crash when opening the profile conf dialog (BGO#587308)



commit eafd4a0a361d0c9f08b716a0b21570d72ffe4d0c
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Mon Jun 29 23:59:05 2009 +0200

    [WrapLabel] Fix crash when opening the profile conf dialog (BGO#587308)

 src/Libraries/Hyena.Gui/Hyena.Widgets/WrapLabel.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Widgets/WrapLabel.cs b/src/Libraries/Hyena.Gui/Hyena.Widgets/WrapLabel.cs
index a2811bb..582a208 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Widgets/WrapLabel.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Widgets/WrapLabel.cs
@@ -60,6 +60,10 @@ namespace Hyena.Widgets
             }
             
             layout.Ellipsize = wrap ? Pango.EllipsizeMode.None : Pango.EllipsizeMode.End;
+
+            if (text == null) {
+                text = "";
+            }
             
             if (use_markup) {
                 layout.SetMarkup (text);



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