Skip to content

Pubmatic adapter seems to crash occasionally on invalid native ads #3896

@justadreamer

Description

@justadreamer

Background

Testing native ads in a publisher Android app working against a PBS-Java we observed occasional /auction 500 response with this error:

Critical error while running the auction: Cannot invoke "com.fasterxml.jackson.databind.JsonNode.isMissingNode()" because "nativeNode" is null

a quick search suggests this part of Pubmatic validation code:

final JsonNode nativeNode = admNode.get("native");
if (!nativeNode.isMissingNode()) {
return nativeNode.toString();
}

Suggested solution

Perhaps a prior null check of nativeNode would be a good defense - as in some cases it may be missing..

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions