[longomatch/redesign: 40/82] Initialize properly the lists



commit 65cc3e1766ecd743f00fa6ae47bec26a4bae0dba
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Dec 22 01:13:19 2010 +0100

    Initialize properly the lists

 LongoMatch/Store/Play.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Store/Play.cs b/LongoMatch/Store/Play.cs
index 2cb46fc..6352a62 100644
--- a/LongoMatch/Store/Play.cs
+++ b/LongoMatch/Store/Play.cs
@@ -38,6 +38,9 @@ namespace LongoMatch.Store
 
 		#region Constructors
 		public Play(){
+			LocalPlayers = new List<Player>();
+			VisitorPlayers = new List<Player>();
+			Tags = new List<Tag>();
 		}
 		#endregion
 
@@ -182,7 +185,7 @@ namespace LongoMatch.Store
 		public string ToString (string team)
 		{
 			String[] tags = new String[Tags.Count];
-			
+		
 			for (int i=0; i<Tags.Count; i++)
 				tags[i] = Tags[i].Value;
 			



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