My suggestion below is just a cheap method to bypass that if you only want your application to work and you are feeling assured that a null object right here wont cause any bigger troubles This is great, isn't it: You can start with The best implementation possible, and you https://propertyingurugram.in/nhais-special-purpose-vehicle-for-delhi-mumbai-expressway-project-raises-over-rs-9700cr-from-four-banks/