Skip to content

Commit

Permalink
Handled NPE in interstitial.go (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
sachin-pubmatic authored and pm-nilesh-chate committed Jan 12, 2022
1 parent 13b768d commit 5d4953a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion endpoints/openrtb2/interstitial.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func processInterstitials(req *openrtb_ext.RequestWrapper) error {
return err
}
prebid = deviceExt.GetPrebid()
if prebid.Interstitial == nil {
if prebid == nil || prebid.Interstitial == nil {
// No special interstitial support requested, so bail as there is nothing to do
return nil
}
Expand Down

0 comments on commit 5d4953a

Please sign in to comment.