Fix #66, for real this time

This commit is contained in:
Marvin W 2016-03-04 17:11:37 +01:00
parent 859fbd4e4c
commit 7a96eb1c25

View file

@ -103,7 +103,8 @@ public class NlpStatusChecks implements SelfCheckGroup {
@Override
public void onLocationChanged(Location location) {
synchronized (result) {
result.set(location != null && location.getExtras().containsKey(LOCATION_EXTRA_BACKEND_PROVIDER));
result.set(location != null && location.getExtras() != null &&
location.getExtras().containsKey(LOCATION_EXTRA_BACKEND_PROVIDER));
result.notifyAll();
}
}