In my code:
decimal maxPrice = list.Max(i => i.price);
Getting error - Object reference not set to an instance of an object. NullReferenceException was unhandled by code.
The i value becomes null, though the list count is 6709. How do I resolve this?