[gnome-photos] source: The "object" property can be NULL
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] source: The "object" property can be NULL
- Date: Sat, 12 May 2012 16:10:06 +0000 (UTC)
commit 973ef2f837b6355e1cb3073ca3a4c407e36248b2
Author: Debarshi Ray <debarshir gnome org>
Date: Sat May 12 15:29:42 2012 +0200
source: The "object" property can be NULL
src/photos-source.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-source.c b/src/photos-source.c
index 1bfeb94..2393fe1 100644
--- a/src/photos-source.c
+++ b/src/photos-source.c
@@ -138,6 +138,9 @@ photos_source_set_property (GObject *object, guint prop_id, const GValue *value,
const gchar *provider_name;
object = GOA_OBJECT (g_value_get_object (value));
+ if (object == NULL)
+ break;
+
account = goa_object_peek_account (object);
id = goa_account_get_id (account);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]