From e50aead1afb2aa3d4caf86342c0a61fdb2a45d97 Mon Sep 17 00:00:00 2001 From: antonbabak Date: Mon, 30 Dec 2024 09:56:50 +0100 Subject: [PATCH] Fix Comments --- src/main/java/org/prebid/server/bidder/flipp/FlippBidder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/prebid/server/bidder/flipp/FlippBidder.java b/src/main/java/org/prebid/server/bidder/flipp/FlippBidder.java index cf501ee2139..dedd8399f1b 100644 --- a/src/main/java/org/prebid/server/bidder/flipp/FlippBidder.java +++ b/src/main/java/org/prebid/server/bidder/flipp/FlippBidder.java @@ -329,6 +329,7 @@ private static Integer resolveHeight(Data data, ExtImpFlipp extImp) { return Optional.ofNullable(data) .map(Data::getCustomData) .map(customData -> customData.get(startCompact ? "compactHeight" : "standardHeight")) + .filter(JsonNode::isNumber) .map(JsonNode::asInt) .orElse(startCompact ? DEFAULT_COMPACT_HEIGHT : DEFAULT_STANDARD_HEIGHT); }