Index: libs/gtkutil/SourceView.cpp
===================================================================
--- libs/gtkutil/SourceView.cpp	(Revision 5112)
+++ libs/gtkutil/SourceView.cpp	(Arbeitskopie)
@@ -89,6 +89,8 @@
 
 	// Extract the script from the input window
 	gchar* text = gtk_text_buffer_get_text(GTK_TEXT_BUFFER(_buffer), &start, &end, TRUE);
+	if (text == (gchar *)0)
+		return std::string("");
 
 	// Convert to std::string, free the GLIB stuff and return
 	std::string contents(text);
