From 8f451932d1be339fc5aaf2095efa0acb2b1de8c7 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 6 Sep 2011 21:03:36 +0000 Subject: Stop plugin_hack objects crashing when not embedded into a page svn path=/trunk/netsurf/; revision=12763 --- amiga/plugin_hack.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'amiga') diff --git a/amiga/plugin_hack.c b/amiga/plugin_hack.c index b37dac15b..7e6cbcb4e 100644 --- a/amiga/plugin_hack.c +++ b/amiga/plugin_hack.c @@ -181,8 +181,11 @@ void amiga_plugin_hack_open(struct content *c, struct browser_window *bw, { LOG(("amiga_plugin_hack_open %s", content__get_url(c))); - c->width = box->width; - c->height = box->height; + if(c && box) + { + c->width = box->width; + c->height = box->height; + } return; } -- cgit v1.2.3