diff options
Diffstat (limited to 'shell/e-folder-tree.c')
-rw-r--r-- | shell/e-folder-tree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/e-folder-tree.c b/shell/e-folder-tree.c index 38a7206051..0c719ca9a4 100644 --- a/shell/e-folder-tree.c +++ b/shell/e-folder-tree.c @@ -306,6 +306,9 @@ e_folder_tree_get_folder (EFolderTree *folder_tree, g_return_val_if_fail (g_path_is_absolute (path), NULL); folder = g_hash_table_lookup (folder_tree->path_to_folder, path); + if (folder == NULL) + return NULL; + return folder->data; } |