commit c7c015eb3995c8dacfa7575e3d580333da770286
Author: Thomas Mittelstaedt <tmstaedt@t-mittelstaedt.de>
Date:   Sun Aug 29 05:46:56 2010 +0200

    Return early, if layout is NULL

diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index 60624a5..de74692 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -218,6 +218,7 @@ static void update_im_cursor_location (ECellTextView *tv);
 gchar *
 e_cell_text_get_text (ECellText *cell, ETableModel *model, gint col, gint row)
 {
+	g_return_val_if_fail(ECT_CLASS(cell) != NULL, NULL);
 	if (ECT_CLASS(cell)->get_text)
 		return ECT_CLASS(cell)->get_text (cell, model, col, row);
 	else
@@ -566,6 +567,7 @@ build_layout (ECellTextView *text_view, gint row, const gchar *text, gint width)
 	cairo_font_options_t *font_options;
 
 	layout = gtk_widget_create_pango_layout (GTK_WIDGET (((GnomeCanvasItem *)ecell_view->e_table_item_view)->canvas), text);
+	g_return_val_if_fail(layout != NULL, NULL);
 
 	attrs = (PangoAttrList *) build_attr_list (text_view, row, text ? strlen (text) : 0);
 
