check folder item and its path for NULL on
[claws.git] / src / main.c
index 4b6ee0d5d2a6f37a6c86449cee75cc5a5f2d7ec5..ebd242a3d850d5ff2afab0baee35e5d93c669d8f 100644 (file)
@@ -436,8 +436,12 @@ static void initial_processing(FolderItem *item, gpointer data)
 {
        MainWindow *mainwin = (MainWindow *)data;
        gchar *buf;
-               
-       buf = g_strdup_printf(_("Processing (%s)..."), item->path);
+
+       g_return_if_fail(item);
+       buf = g_strdup_printf(_("Processing (%s)..."), 
+                             item->path 
+                             ? item->path 
+                             : _("top level folder"));
        debug_print("%s\n", buf);
        STATUSBAR_PUSH(mainwin, buf);
        g_free(buf);