diff -r dbb565b8d61c surf.c
--- a/surf.c	Fri Jun 25 09:42:58 2010 +0200
+++ b/surf.c	Sun Jul 25 15:42:26 2010 +0100
@@ -253,11 +253,13 @@ drawindicator(Client *c) {
 	gdk_color_parse(strstr(uri, "https://") == uri ?
 			progress_trust : progress, &fg);
 	gdk_gc_set_rgb_fg_color(gc, &fg);
-	gdk_draw_rectangle(w->window,
-			w->style->bg_gc[GTK_WIDGET_STATE(w)],
-			TRUE, 0, 0, w->allocation.width, w->allocation.height);
-	gdk_draw_rectangle(w->window, gc, TRUE, 0, 0, width,
-			w->allocation.height);
+	if(w != NULL) {
+		gdk_draw_rectangle(w->window,
+				w->style->bg_gc[GTK_WIDGET_STATE(w)],
+				TRUE, 0, 0, w->allocation.width, w->allocation.height);
+		gdk_draw_rectangle(w->window, gc, TRUE, 0, 0, width,
+				w->allocation.height);
+	}
 	g_object_unref(gc);
 }
 
