Null Pointer Exception on getLatitude
问题 'double android.location.Location.getLatitude()' on a null object reference return new ParseGeoPoint(loc.getLatitude(), loc.getLongitude()); and with the ParseGeoQuery query.whereWithinKilometers("GeoArea", geoPointFromLocation(myLoc), radius); This is the onCreate Method where the location is being initialized // Create a new global location parameters object locationRequest = LocationRequest.create(); // Set the update interval locationRequest.setInterval(UPDATE_INTERVAL_IN_MILLISECONDS); /