Index: mark-all-read.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/mark-all-read/mark-all-read.c,v
retrieving revision 1.1
diff -u -b -r1.1 mark-all-read.c
--- mark-all-read.c     19 May 2005 17:32:41 -0000      1.1
+++ mark-all-read.c     26 Jun 2006 13:07:40 -0000
@@ -71,12 +71,13 @@
        guint32 flags = CAMEL_STORE_FOLDER_INFO_RECURSIVE | CAMEL_STORE_FOLDER_INFO_FAST;

        camel_exception_init (&ex);
-       store = folder->parent_store;
-       info = camel_store_get_folder_info (store, folder->full_name, flags, &ex);

        /* FIXME we have to disable the menu item */
        if (!folder)
                return;
+
+       store = folder->parent_store;
+       info = camel_store_get_folder_info (store, folder->full_name, flags, &ex);

        if (camel_exception_is_set (&ex)) {
                camel_exception_clear (&ex);
