--- librsvg-2.9.5/rsvg-defs.c	2005/03/03 02:31:05	1.1
+++ librsvg-2.9.5/rsvg-defs.c	2005/03/03 02:31:37
@@ -101,6 +101,8 @@ rsvg_defs_extern_lookup (const RsvgDefs 
 			if (rsvg_defs_load_extern(defs, filename))
 				return NULL;
 			file = (RsvgHandle *)g_hash_table_lookup (defs->externs, filename);
+			if (file == NULL)
+				return NULL;
 		}
 	return (RsvgDefVal *)g_hash_table_lookup (file->defs->hash, name);
 }
