You likely need to call the has() method prior to calling getString to avoid the exception. But there's an even simpler way - just use the optString instead of getString, which will return the "fallback" string if the value does not exist.
String name = location.optString("name", "No Place");
String address = location.optString("address", "No Address");
String city = location.optString("city", "No City");