prebid-server-java icon indicating copy to clipboard operation
prebid-server-java copied to clipboard

Pubmatic adapter seems to crash occasionally on invalid native ads

Open justadreamer opened this issue 9 months ago • 0 comments

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:

https://github.com/prebid/prebid-server-java/blob/d02bd514b0e36b85d0055a75dc87377ece73aca3/src/main/java/org/prebid/server/bidder/pubmatic/PubmaticBidder.java#L597-L600

Suggested solution

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

justadreamer avatar Apr 07 '25 22:04 justadreamer