From 0368935cd31fd08b6383f3941c1f64ecb4c9ef90 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 23 Mar 2016 00:01:45 +0000 Subject: [PATCH] Avoid nsurl NULL access --- amiga/bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amiga/bitmap.c b/amiga/bitmap.c index a481cb43f..3d5f47f89 100644 --- a/amiga/bitmap.c +++ b/amiga/bitmap.c @@ -338,7 +338,7 @@ Object *ami_datatype_object_from_bitmap(struct bitmap *bitmap) } SetDTAttrs(dto,NULL,NULL, - DTA_ObjName,nsurl_access(bitmap->url), + DTA_ObjName, bitmap->url ? nsurl_access(bitmap->url) : "", DTA_ObjAnnotation,bitmap->title, DTA_ObjAuthor,messages_get("NetSurf"), DTA_NominalHoriz,bitmap_get_width(bitmap),