summaryrefslogtreecommitdiff
path: root/capplets
diff options
context:
space:
mode:
authorBradford Hovinen <hovinen@ximian.com>2001-08-23 19:16:03 +0000
committerBradford Hovinen (Gdict maintainer) <hovinen@src.gnome.org>2001-08-23 19:16:03 +0000
commit74b7c332bcd67826d580ca9786689cce424af757 (patch)
tree2c013ea7601edbe3c091fe6843c1518c91a73ff3 /capplets
parent768a3d5a467126fa461d1232701c281926e4619f (diff)
downloadgnome-control-center-74b7c332bcd67826d580ca9786689cce424af757.tar.gz
Don't try to archive the data if the archive is NULL
2001-08-23 Bradford Hovinen <hovinen@ximian.com> * main.c: (store_archive_data): Don't try to archive the data if the archive is NULL
Diffstat (limited to 'capplets')
-rw-r--r--capplets/screensaver/ChangeLog2
-rw-r--r--capplets/screensaver/main.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/capplets/screensaver/ChangeLog b/capplets/screensaver/ChangeLog
index 6a27ba8ef..41d29b440 100644
--- a/capplets/screensaver/ChangeLog
+++ b/capplets/screensaver/ChangeLog
@@ -1,6 +1,8 @@
2001-08-23 Bradford Hovinen <hovinen@ximian.com>
* main.c: Port to new CORBA interface
+ (store_archive_data): Don't try to archive the data if the archive
+ is NULL
2001-08-19 Abel Cheung <maddog@linux.org.hk>
diff --git a/capplets/screensaver/main.c b/capplets/screensaver/main.c
index 3eb5a9d48..4a5559d77 100644
--- a/capplets/screensaver/main.c
+++ b/capplets/screensaver/main.c
@@ -67,6 +67,9 @@ store_archive_data (void)
xmlDocPtr xml_doc;
CORBA_Environment ev;
+ if (archive == CORBA_OBJECT_NIL)
+ return;
+
CORBA_exception_init (&ev);
if (capplet_get_location () == NULL)