diff options
-rwxr-xr-x | amiga/gui.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |