Skip to content

Commit

Permalink
Correctly handle location result on initial update() call
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Apr 18, 2016
1 parent 97b01d5 commit abfc98d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public Location update() {
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();
}
Expand Down

0 comments on commit abfc98d

Please sign in to comment.