diff --git a/browser/sync_page_mapping.go b/browser/sync_page_mapping.go index 19a6a7a7f..28243ac4d 100644 --- a/browser/sync_page_mapping.go +++ b/browser/sync_page_mapping.go @@ -140,6 +140,10 @@ func syncMapPage(vu moduleVU, p *common.Page) mapping { //nolint:gocognit,cyclop return nil, err //nolint:wrapcheck } + if resp == nil { + return nil, nil //nolint:nilnil + } + r := syncMapResponse(vu, resp) return rt.ToValue(r).ToObject(rt), nil