From 2b2b2ccf96dfda13aa598f1f714de8af15145c7a Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Tue, 24 Jan 2006 23:02:44 +0000 Subject: [project @ 2006-01-24 23:02:44 by rjw] Stop failed decompression/loading from attempting to plot a NULL bitmap. svn path=/import/netsurf/; revision=2026 --- riscos/image.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/riscos/image.c b/riscos/image.c index 15ff2b6ab..d5ae8d6e4 100644 --- a/riscos/image.c +++ b/riscos/image.c @@ -49,6 +49,11 @@ bool image_redraw(osspriteop_area *area, int x, int y, int req_width, bool repeatx, bool repeaty, bool background, image_type type) { unsigned int tinct_options; + + /* failed decompression/loading can result in no image being present */ + if (!area) + return false; + osspriteop_id header = (osspriteop_id) ((char*) area + area->first); req_width *= 2; -- cgit v1.2.3