Skip to content

Commit

Permalink
Fix panic on nil response during page.reload
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Aug 23, 2024
1 parent a343afb commit ca6b5af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions browser/sync_page_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca6b5af

Please sign in to comment.