[blam/wcf: 5/8] Don't try to read Summary.Text if Summary is null



commit 35352a01915cbdf4938fc805fb3d3ac901e027f1
Author: Carlos Martín Nieto <carlos cmartin tk>
Date:   Sun Jun 6 20:35:21 2010 +0200

    Don't try to read Summary.Text if Summary is null

 src/Item.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Item.cs b/src/Item.cs
index fc8ece4..3d892dc 100644
--- a/src/Item.cs
+++ b/src/Item.cs
@@ -53,7 +53,7 @@ namespace Imendio.Blam {
                 this.Title = HtmlUtils.StripHtml(item.Title.Text.Trim());
             }
 
-            if(item.Summary.Text != null && item.Summary.Text != ""){
+            if(item.Summary != null && item.Summary.Text != ""){
                 this.Text = item.Summary.Text.Trim();
             }
 



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