2011-10-25 [colin] 3.7.10cvs47
[claws.git] / src / mimeview.c
index 4fba82de16a263d7dc8b9776e6e82f1dbb95e1fd..5c9d633d657a0fc5e798452498071d79a57dd3bc 100644 (file)
@@ -1290,7 +1290,9 @@ static void mimeview_start_drag(GtkWidget *widget, gint button,
        cm_return_if_fail(mimeview != NULL);
 
        partinfo = mimeview_get_selected_part(mimeview);
-       if (partinfo->disposition == DISPOSITIONTYPE_INLINE) return;
+       if (partinfo == NULL || 
+           partinfo->disposition == DISPOSITIONTYPE_INLINE)
+               return;
 
        context = gtk_drag_begin(widget, mimeview->target_list,
                                 GDK_ACTION_COPY, button, event);