My suggestion below is simply a cheap way to bypass that if you just want your application to operate and you are feeling assured that a null object in this article wont bring about any bigger problems For an illustration of a member variable that isn't outlined at compile time, https://propertyingurugram.in/adore-group-to-develop-rs-1000-cr-greek-styled-housing-project-in-gurugram/