My recommendation listed here is just a cheap technique to bypass that if you simply want your app to work and you feel self-confident that a null object here wont bring about any greater difficulties I stumbled on this problem when refactoring a function to return an item in lieu https://propertyingurugram.in/delhi-mumbai-expressway-to-boost-economic-growth-real-estate-in-delhi-ncr-sohna-gurugram/