Closed pmsferreira closed 4 years ago
Thanks for reporting, are you able to reproduce this issue in a particular pattern / usecase? Or It happens randomly?
Hi @yayaa it only happens randomly when i use getLocation() inside a thread runnable:
final Handler handler = new Handler(); Runnable runnable = new Runnable() { @Override public void run() { if(location != null ) { / app code / } }); }} else handler.postDelayed(this, 500); } }; handler.post(runnable); getLocation();
Same here!
Sometimes when I call getLocation(), I get this exception "Attempt to invoke virtual method 'void com.yayandroid.locationmanager.helper.continuoustask.ContinuousTask.delayed(long)' on a null object reference".
Configuration
Logs
LocationManager: We got permission! DispatcherLocationProvider: GooglePlayServices is available on device. DispatcherLocationProvider: Attempting to get location from Google Play Services providers... : Attempt to invoke virtual method 'void com.yayandroid.locationmanager.helper.continuoustask.ContinuousTask.delayed(long)' on a null object reference