[longomatch/redesign: 81/96] Change for null pointer
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign: 81/96] Change for null pointer
- Date: Tue, 29 Mar 2011 18:22:33 +0000 (UTC)
commit b775abc2ac0814511f9ae5daceeb9a10719497c0
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]