[longomatch/redesign3: 79/143] Change for null pointer



commit 9a885eede1c922d9c277f0f444a696d8dc4eaaf3
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Mar 15 23:52:55 2011 +0100

    Change for null pointer

 LongoMatch/Store/Player.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Store/Player.cs b/LongoMatch/Store/Player.cs
index 57fd7b0..896b605 100644
--- a/LongoMatch/Store/Player.cs
+++ b/LongoMatch/Store/Player.cs
@@ -72,7 +72,10 @@ namespace LongoMatch.Store
 					return null;
 			}
 			set {
-				photo=value.SaveToBuffer("png");
+				if(value != null)
+					photo = value.SaveToBuffer("png");
+				else
+					photo = null;
 			}
 		}
 



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