[longomatch] Remove null EventTypes from the list
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Remove null EventTypes from the list
- Date: Mon, 22 Dec 2014 19:10:25 +0000 (UTC)
commit 224805262681ee7b8082ecd512ce3de8e1ee8b2c
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Dec 22 20:09:54 2014 +0100
Remove null EventTypes from the list
LongoMatch.Core/Store/Project.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/Store/Project.cs b/LongoMatch.Core/Store/Project.cs
index 7df1ac6..b9d503e 100644
--- a/LongoMatch.Core/Store/Project.cs
+++ b/LongoMatch.Core/Store/Project.cs
@@ -323,6 +323,9 @@ namespace LongoMatch.Core.Store
if (!EventTypes.Contains (SubstitutionsEventType)) {
EventTypes.Add (SubstitutionsEventType);
}
+
+ /* Remove null EventTypes just in case */
+ EventTypes = EventTypes.Where (e => e != null).ToList ();
}
public SubstitutionEvent SubsitutePlayer (TeamTemplate template, Player playerIn, Player
playerOut,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]