Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE causing crash #281

Open
ekigamba opened this issue Apr 12, 2019 · 0 comments
Open

NPE causing crash #281

ekigamba opened this issue Apr 12, 2019 · 0 comments

Comments

@ekigamba
Copy link
Contributor

ekigamba commented Apr 12, 2019

04-11 20:50:19.168 13026-13026/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: io.ona.kujaku.sample, PID: 13026
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.mapbox.mapboxsdk.location.LocationComponent.forceLocationUpdate(android.location.Location)' on a null object reference
        at io.ona.kujaku.views.KujakuMapView.updateUserLocation(KujakuMapView.java:431)
        at io.ona.kujaku.views.KujakuMapView.showUpdatedUserLocation(KujakuMapView.java:261)
        at io.ona.kujaku.views.KujakuMapView.access$700(KujakuMapView.java:97)
        at io.ona.kujaku.views.KujakuMapView$3.onLocationChanged(KujakuMapView.java:285)
        at io.ona.kujaku.location.clients.GoogleLocationClient$GoogleLocationCallback.onLocationResult(GoogleLocationClient.java:289)
        at com.google.android.gms.internal.location.zzau.notifyListener(Unknown Source:4)
        at com.google.android.gms.common.api.internal.ListenerHolder.notifyListenerInternal(Unknown Source:17)
        at com.google.android.gms.common.api.internal.ListenerHolder$zaa.handleMessage(Unknown Source:5)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6650)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:818)

on #275 branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant