Skip to content

Commit

Permalink
Fixing null issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansligh-nimbus committed Nov 19, 2024
1 parent cd0115a commit d7818e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d7818e5

Please sign in to comment.