Skip to content

Commit

Permalink
Fix NPE reported in #66
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Mar 3, 2016
1 parent 12f0fc3 commit bb3e9bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void run() {
@Override
public void onLocationChanged(Location location) {
synchronized (result) {
result.set(location.getExtras().containsKey(LOCATION_EXTRA_BACKEND_PROVIDER));
result.set(location != null && location.getExtras().containsKey(LOCATION_EXTRA_BACKEND_PROVIDER));
result.notifyAll();
}
}
Expand Down

0 comments on commit bb3e9bf

Please sign in to comment.