Skip to content

Commit

Permalink
Added better null handling to prevent a crash that took down the inge…
Browse files Browse the repository at this point in the history
…st app.
  • Loading branch information
uncheckederror committed Nov 17, 2024
1 parent f9e6841 commit ab9b235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NumberSearch.Ingest/PortRequests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public async static Task UpdateStatusesBulkVSAsync(IngestConfiguration configura
foreach (var number in portedNumbers)
{
// If the request has been assigned and external port request id than it has been submitted to the vendor.
if (!string.IsNullOrWhiteSpace(number.ExternalPortRequestId) && bulkStatus.TNList.Length != 0)
if (!string.IsNullOrWhiteSpace(number?.ExternalPortRequestId) && bulkStatus.TNList.Length != 0)
{
var matchingNumber = bulkStatus.TNList.Where(x => x.TN == $"1{number.PortedDialedNumber}").FirstOrDefault();

Expand Down

0 comments on commit ab9b235

Please sign in to comment.