From 69bf5c5ccc450cc8e884bea9b685ba86b54b04a8 Mon Sep 17 00:00:00 2001 From: Malkov Mikhail Date: Mon, 31 Jan 2022 23:08:37 +0300 Subject: [PATCH] Update nextMillenniumBidAdapter.js (#7972) Fixed an error that occurred if one of the intermediate objects response.body.ext.responsetimemillis is missing --- modules/nextMillenniumBidAdapter.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/nextMillenniumBidAdapter.js b/modules/nextMillenniumBidAdapter.js index 4791740bf2f..85537d382c2 100644 --- a/modules/nextMillenniumBidAdapter.js +++ b/modules/nextMillenniumBidAdapter.js @@ -109,6 +109,7 @@ export const spec = { let bidders = [] if (responses) { _each(responses, (response) => { + if (!(response && response.body && response.body.ext && response.body.ext.responsetimemillis)) return _each(Object.keys(response.body.ext.responsetimemillis), b => bidders.push(b)) }) }