Fixed nullref inside GetItemMinAvgMaxFleaPriceValues
This commit is contained in:
@@ -343,7 +343,7 @@ public class RagfairController(
|
||||
var offers = ragfairOfferService.GetOffersOfType(getPriceRequest.TemplateId);
|
||||
|
||||
// Offers exist for item, get averages of what's listed
|
||||
if (offers.Any())
|
||||
if (offers != null && offers.Any())
|
||||
{
|
||||
// These get calculated while iterating through the list below
|
||||
var minMax = new MinMax<double>(int.MaxValue, 0);
|
||||
|
||||
Reference in New Issue
Block a user