My suggestion in this article is just an inexpensive approach to bypass that if you simply want your app to operate and you are feeling assured that a null object here wont result in any bigger challenges For an example of a member variable that's not outlined at compile time, https://propertyingurugram.in/gcc-nris-top-investors-in-indian-real-estate-says-dlf/