From 3987e052ab5edfb2261c77aee3b66dd33ef4f82a Mon Sep 17 00:00:00 2001 From: Sachin Survase Date: Wed, 18 Aug 2021 19:13:39 +0530 Subject: [PATCH] Handled NPE in interstitial.go --- endpoints/openrtb2/interstitial.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/openrtb2/interstitial.go b/endpoints/openrtb2/interstitial.go index 359bae11d4c..18717766e26 100644 --- a/endpoints/openrtb2/interstitial.go +++ b/endpoints/openrtb2/interstitial.go @@ -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 }