From d0ecf4969e7ef2d79e6b718db1929125f5e4bbb8 Mon Sep 17 00:00:00 2001 From: Devashish Sharma Date: Thu, 23 Feb 2006 10:56:07 +0000 Subject: Fix for Bug #332123. svn path=/trunk/; revision=31567 --- addressbook/gui/contact-editor/e-contact-editor.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'addressbook/gui') diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index fe56acec5d..2097eee1f6 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -2739,6 +2739,8 @@ update_preview_cb (GtkFileChooser *file_chooser, gpointer data) preview = GTK_WIDGET (data); filename = gtk_file_chooser_get_preview_filename (file_chooser); + if (filename == NULL) + return; pixbuf = gdk_pixbuf_new_from_file_at_size (filename, 128, 128, NULL); have_preview = (pixbuf != NULL); -- cgit v1.2.3