Exception: Call to a member function getCityNum() on null