From 3a93fd10851b52ed240a0c3e47e4da85ea472938 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 23 May 2009 19:06:58 +0000 Subject: Fix crash when pages are loading svn path=/trunk/netsurf/; revision=7537 --- amiga/gui.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'amiga') diff --git a/amiga/gui.c b/amiga/gui.c index 6526811d4..362fd4548 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2773,7 +2773,11 @@ void gui_window_remove_caret(struct gui_window *g) void gui_window_new_content(struct gui_window *g) { - struct content *c = g->shared->bw->current_content; + struct content *c; + + if(g && g->shared && g->shared->bw) + c = g->shared->bw->current_content; + else return; if(c->type <= CONTENT_CSS) { -- cgit v1.2.3