You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am using this library (implementation 'pl.charmas.android:android-reactive-location2:2.1@aar') and it keeps crashing on some devices :(
Can anyone help me to prevent this from crashing?
From the source code I can see, that it's happening when creating an instance of Geocoder in observables/geocode/ReverseGeocodeObservable.java:
"Geocoder geocoder = new Geocoder(ctx, locale);"
Google play crash report:
io.reactivex.exceptions.OnErrorNotImplementedException:
at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept (Functions.java:704)
at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept (Functions.java:701)
at io.reactivex.internal.observers.LambdaObserver.onError (LambdaObserver.java:77)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.checkTerminated (ObservableObserveOn.java:276)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal (ObservableObserveOn.java:172)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run (ObservableObserveOn.java:252)
at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run (HandlerScheduler.java:109)
at android.os.Handler.handleCallback (Handler.java:754)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:163)
at android.app.ActivityThread.main (ActivityThread.java:6396)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:794)
Caused by: java.lang.NullPointerException:
at android.location.GeocoderParams. (GeocoderParams.java:50)
at android.location.Geocoder. (Geocoder.java:83)
at pl.charmas.android.reactivelocation2.observables.geocode.ReverseGeocodeObservable.subscribe (ReverseGeocodeObservable.java:40)
at io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual (ObservableCreate.java:40)
at io.reactivex.Observable.subscribe (Observable.java:10910)
at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run (ObservableSubscribeOn.java:96)
at io.reactivex.Scheduler$DisposeTask.run (Scheduler.java:452)
at io.reactivex.internal.schedulers.ScheduledRunnable.run (ScheduledRunnable.java:61)
at io.reactivex.internal.schedulers.ScheduledRunnable.call (ScheduledRunnable.java:52)
at java.util.concurrent.FutureTask.run (FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run (ScheduledThreadPoolExecutor.java:272)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607)
at java.lang.Thread.run (Thread.java:760)
The text was updated successfully, but these errors were encountered:
Hello, I am using this library (implementation 'pl.charmas.android:android-reactive-location2:2.1@aar') and it keeps crashing on some devices :(
Can anyone help me to prevent this from crashing?
From the source code I can see, that it's happening when creating an instance of Geocoder in observables/geocode/ReverseGeocodeObservable.java:
"Geocoder geocoder = new Geocoder(ctx, locale);"
Google play crash report:
io.reactivex.exceptions.OnErrorNotImplementedException:
at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept (Functions.java:704)
at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept (Functions.java:701)
at io.reactivex.internal.observers.LambdaObserver.onError (LambdaObserver.java:77)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.checkTerminated (ObservableObserveOn.java:276)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal (ObservableObserveOn.java:172)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run (ObservableObserveOn.java:252)
at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run (HandlerScheduler.java:109)
at android.os.Handler.handleCallback (Handler.java:754)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:163)
at android.app.ActivityThread.main (ActivityThread.java:6396)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:794)
Caused by: java.lang.NullPointerException:
at android.location.GeocoderParams. (GeocoderParams.java:50)
at android.location.Geocoder. (Geocoder.java:83)
at pl.charmas.android.reactivelocation2.observables.geocode.ReverseGeocodeObservable.subscribe (ReverseGeocodeObservable.java:40)
at io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual (ObservableCreate.java:40)
at io.reactivex.Observable.subscribe (Observable.java:10910)
at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run (ObservableSubscribeOn.java:96)
at io.reactivex.Scheduler$DisposeTask.run (Scheduler.java:452)
at io.reactivex.internal.schedulers.ScheduledRunnable.run (ScheduledRunnable.java:61)
at io.reactivex.internal.schedulers.ScheduledRunnable.call (ScheduledRunnable.java:52)
at java.util.concurrent.FutureTask.run (FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run (ScheduledThreadPoolExecutor.java:272)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607)
at java.lang.Thread.run (Thread.java:760)
The text was updated successfully, but these errors were encountered: