diff -up libsoup-2.62.2/libsoup/soup-path-map.c.coverity-scan-issues libsoup-2.62.2/libsoup/soup-path-map.c
--- libsoup-2.62.2/libsoup/soup-path-map.c.coverity-scan-issues	2018-03-15 17:46:00.000000000 +0100
+++ libsoup-2.62.2/libsoup/soup-path-map.c	2018-06-22 11:25:33.385294057 +0200
@@ -181,9 +181,14 @@ soup_path_map_remove (SoupPathMap *map,
 gpointer
 soup_path_map_lookup (SoupPathMap *map, const char *path)
 {
-	SoupPathMapping *mappings = (SoupPathMapping *)map->mappings->data;
+	SoupPathMapping *mappings;
 	int match;
 
+	if (!map)
+		return NULL;
+
+	mappings = (SoupPathMapping *)map->mappings->data;
+
 	mapping_lookup (map, path, &match, NULL);
 	if (match == -1)
 		return NULL;
