Skip to content

Commit

Permalink
Fix for missing last location
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Mar 23, 2016
1 parent 6942a05 commit d184e0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void onServiceDisconnected(ComponentName name) {
private class Callback extends LocationCallback.Stub {
@Override
public void report(Location location) throws RemoteException {
if ((location == null) || (location.getTime() <= lastLocation.getTime()))
if ((location == null) || (lastLocation != null && location.getTime() <= lastLocation.getTime()))
return;
setLastLocation(location);
backendFuser.reportLocation();
Expand Down

0 comments on commit d184e0e

Please sign in to comment.