[longomatch/redesign3: 79/156] Change for null pointer
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign3: 79/156] Change for null pointer
- Date: Wed, 17 Aug 2011 22:22:50 +0000 (UTC)
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]