Skip to content

Commit 5431c20

Browse files
added device nil check
1 parent 33184f3 commit 5431c20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adapters/kobler/kobler.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ func convertImpCurrency(imp *openrtb2.Imp, reqInfo *adapters.ExtraRequestInfo) e
161161
}
162162

163163
func sanitizeRequest(request openrtb2.BidRequest) *openrtb2.BidRequest {
164-
request.Device = sanitizeDevice(*request.Device)
164+
if request.Device != nil {
165+
request.Device = sanitizeDevice(*request.Device)
166+
}
165167
request.User = nil
166168

167169
return &request

0 commit comments

Comments
 (0)