Skip to content

Commit

Permalink
openxOrtbBidAdapter: avoid error logging when response body is null (p…
Browse files Browse the repository at this point in the history
…rebid#8725)

```
prebid.js:5 Prebid openx ERROR: Bidder openx failed to interpret the server's response. Continuing without bids null TypeError: Cannot use 'in' operator to search for 'nbr' in at prebid.js:12:4571
```
Thanks @piotrj-rtbh
  • Loading branch information
kenan-gillet authored and Chris Corbo committed Jul 27, 2022
1 parent 8139516 commit 6c2b72c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/openxOrtbBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function interpretResponse(resp, req) {
}

const respBody = resp.body;
if ('nbr' in respBody) {
if (!respBody || 'nbr' in respBody) {
return [];
}

Expand Down

0 comments on commit 6c2b72c

Please sign in to comment.