From 2a9973b6fb45980836115bdbb0a05f0478d0a08e Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Sun, 1 Jul 2001 11:43:52 +0000 Subject: Fix a crash that happened when dragging a folder that didn't have a component associated with it. svn path=/trunk/; revision=10656 --- shell/e-storage-set-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shell/e-storage-set-view.c') diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index 5b5e117c1b..fc4872f9b1 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -902,7 +902,8 @@ tree_drag_begin (ETree *etree, folder = get_folder_at_node (storage_set_view, path); component_client = get_component_at_node (storage_set_view, path); - g_assert (component_client != NULL); + if (component_client == NULL) + return; /* Query the `ShellComponentDnd::SourceFolder' interface on the component. */ -- cgit v1.2.3