Correctly handle location result on initial update() call

This commit is contained in:
Marvin W 2016-04-19 01:30:21 +02:00
parent 97b01d50d4
commit abfc98df46

View file

@ -69,7 +69,7 @@ class BackendHelper extends AbstractBackendHelper {
updateWaiting = false;
try {
result = backend.update();
if ((result != null) && (result.getTime() > lastLocation.getTime())) {
if (result != null && (lastLocation == null || result.getTime() > lastLocation.getTime())) {
setLastLocation(result);
backendFuser.reportLocation();
}