[seahorse] pgp: Fix use of null pointer in SeahorseGpgmeKeyring



commit 181b279d62991b3bab465bd4bacd5802fc79878a
Author: Stef Walter <stefw gnome org>
Date:   Fri Jun 29 15:42:09 2012 +0200

    pgp: Fix use of null pointer in SeahorseGpgmeKeyring

 pgp/seahorse-gpgme-keyring.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pgp/seahorse-gpgme-keyring.c b/pgp/seahorse-gpgme-keyring.c
index 579ab09..3e7fa43 100644
--- a/pgp/seahorse-gpgme-keyring.c
+++ b/pgp/seahorse-gpgme-keyring.c
@@ -837,7 +837,8 @@ seahorse_gpgme_keyring_dispose (GObject *object)
 	SeahorseGpgmeKeyring *self = SEAHORSE_GPGME_KEYRING (object);
 	GList *l;
 
-	gtk_action_group_set_sensitive (self->pv->actions, TRUE);
+	if (self->pv->actions)
+		gtk_action_group_set_sensitive (self->pv->actions, TRUE);
 	g_hash_table_remove_all (self->pv->keys);
 
 	cancel_scheduled_refresh (self);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]