My suggestion below is just an affordable approach to bypass that if you just want your app to operate and you're feeling self-assured that a null object in this article wont lead to any bigger complications For an example of a member variable that's not described at compile time, a https://propertyingurugram.in/housing-prices-may-rise-10-15-if-rates-of-construction-raw-material-not-controlled-credai/