--- gnome-session-3.2.0/gnome-session/gsm-shell-extensions.c-orig	2011-10-06 02:20:18.058806306 -0500
+++ gnome-session-3.2.0/gnome-session/gsm-shell-extensions.c	2011-10-06 02:21:01.214693405 -0500
@@ -256,7 +256,7 @@ gsm_shell_extensions_init (GsmShellExten
   /* Unfortunately, gsettings does not have a way to test
    * for the existance of a schema, so hack around it. */
   schemas = g_settings_list_schemas ();
-  while (schemas != '\0')
+  while (schemas != NULL && schemas != '\0')
     {
       if (g_str_equal (*schemas, SHELL_SCHEMA))
         {
