From 0415edc9c481f83f9741fa18844cf8a0ea92dd7a Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 13 Jan 2015 19:09:48 +0000 Subject: avoid a crash when switching tabs --- amiga/gui.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'amiga/gui.c') diff --git a/amiga/gui.c b/amiga/gui.c index a26510fcc..c5e65c9a2 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2819,8 +2819,7 @@ void ami_switch_tab(struct gui_window_2 *gwin, bool redraw) return; } - if(browser_window_has_content(gwin->gw->bw) == false) - { + if((gwin->gw->bw == NULL) || (browser_window_has_content(gwin->gw->bw)) == false) { RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_URL], gwin->win, NULL, STRINGA_TextVal, "", TAG_DONE); -- cgit v1.2.3