Skip to content

Commit

Permalink
Handle undefined Server Response
Browse files Browse the repository at this point in the history
  • Loading branch information
Li Xinyang committed Oct 25, 2017
1 parent bee2344 commit 417852e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/quantcastBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ export const spec = {
*
*/
interpretResponse(serverResponse) {
if (serverResponse === undefined) {
utils.logError('Server Response is undefined');
return [];
}

const response = serverResponse['body'];

if (
Expand Down

0 comments on commit 417852e

Please sign in to comment.