[longomatch] Fix return when the list is null
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix return when the list is null
- Date: Tue, 31 Mar 2015 17:39:27 +0000 (UTC)
commit d8588ad4c05b1b3957c28705218162d5c5cca981
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Mar 31 19:38:48 2015 +0200
Fix return when the list is null
LongoMatch.Services/Services/PlayerController.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Services/Services/PlayerController.cs
b/LongoMatch.Services/Services/PlayerController.cs
index 897613b..d4595b0 100644
--- a/LongoMatch.Services/Services/PlayerController.cs
+++ b/LongoMatch.Services/Services/PlayerController.cs
@@ -118,7 +118,11 @@ namespace LongoMatch.Services
}
}
get {
- return camerasVisible.ToList ();
+ if (camerasVisible != null) {
+ return camerasVisible.ToList ();
+ } else {
+ return null;
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]