fix bugs 73, 'Crash when selecting top-level folder'
[claws.git] / src / folderview.c
index 91210ffb1bc476a8bbf02e3c49c2830bf485807c..6883db18c5d207792a9f825d63337e1c9261e319 100644 (file)
@@ -1753,7 +1753,8 @@ static void folderview_selected(GtkCTree *ctree, GtkCTreeNode *row,
        }
 
        /* Open Folder */
-       buf = g_strdup_printf(_("Opening Folder %s..."), item->path);
+       buf = g_strdup_printf(_("Opening Folder %s..."), item->path ? 
+                                       item->path : "(null)");
        debug_print("%s\n", buf);
        STATUSBAR_PUSH(folderview->mainwin, buf);
        g_free(buf);