[longomatch/redesign2: 80/140] Change for null pointer
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign2: 80/140] Change for null pointer
- Date: Tue, 24 May 2011 22:02:50 +0000 (UTC)
commit c76133dbd85a18db662232a5ed74ed3cefefb9e4
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]