From d7818e51a0cb50af39097e33869556f90b0319a5 Mon Sep 17 00:00:00 2001 From: Jonathan Sligh Date: Tue, 19 Nov 2024 13:43:59 -0600 Subject: [PATCH] Fixing null issues. --- .../Interceptor/ThirdPartyDemand/Vungle/VungleAndroid.cs | 6 ++++-- .../Interceptor/ThirdPartyDemand/Vungle/VungleIOS.cs | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleAndroid.cs b/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleAndroid.cs index e39f75a5..d3ccbcd3 100644 --- a/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleAndroid.cs +++ b/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleAndroid.cs @@ -27,9 +27,11 @@ public BidRequest ModifyRequest(BidRequest bidRequest, string data) { if (data.IsNullOrEmpty()) { return bidRequest; } - if (bidRequest.User.Ext != null) { - bidRequest.User.Ext.VungleBuyerId = data; + if (bidRequest.User.Ext == null) { + bidRequest.User.Ext = new UserExt(); } + bidRequest.User.Ext.VungleBuyerId = data; + return bidRequest; } diff --git a/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleIOS.cs b/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleIOS.cs index f87be30b..c009e7bc 100644 --- a/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleIOS.cs +++ b/com.adsbynimbus.nimbus/Runtime/Scripts/Nimbus.Internal/Interceptor/ThirdPartyDemand/Vungle/VungleIOS.cs @@ -30,9 +30,11 @@ public BidRequest ModifyRequest(BidRequest bidRequest, string data) { if (data.IsNullOrEmpty()) { return bidRequest; } - if (bidRequest.User.Ext != null) { - bidRequest.User.Ext.VungleBuyerId = data; + if (bidRequest.User.Ext == null) { + bidRequest.User.Ext = new UserExt(); } + bidRequest.User.Ext.VungleBuyerId = data; + return bidRequest; }