Make it explicit that we don't add location in post when there is none
even before we didn't since hasPreciseLocation and isLocationFresh will return false anyway but let's be explicit about it
@@ -70,7 +70,8 @@ public class PullServerHandler extends AsyncTask<Void, Void, String> {
try {
jsonObject.put("device", userModel.getChangingDeviceToken());
- if (ownLocationModel.hasPreciseLocation() && ownLocationModel.isLocationFresh()) {
+ if (ownLocationModel.ownLocation != null && ownLocationModel.hasPreciseLocation()
+ && ownLocationModel.isLocationFresh()) {
jsonObject.put("location", ownLocationModel.getLocationJson());
}
