Error 500

Trying to get property 'consulateLocation' of non-object