Skip to content

NPE in Nearby #3260

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

Closed
ashishkumar468 opened this issue Dec 3, 2019 · 0 comments
Closed

NPE in Nearby #3260

ashishkumar468 opened this issue Dec 3, 2019 · 0 comments
Assignees

Comments

@ashishkumar468
Copy link
Collaborator

Summary:

Nearby Crashes with NPE

Steps to reproduce:

Open Nearby, allow Location Permission, Nearby Crashes

System logs:

java.lang.NullPointerException: Attempt to invoke virtual method 'double fr.free.nrw.commons.location.LatLng.getLatitude()' on a null object reference
at fr.free.nrw.commons.nearby.fragments.NearbyMapFragment.addCurrentLocationMarker(NearbyMapFragment.java:324)
at fr.free.nrw.commons.nearby.fragments.NearbyParentFragment.recenterMap(NearbyParentFragment.java:845)
at fr.free.nrw.commons.nearby.presenter.NearbyParentFragmentPresenter.lambda$setActionListeners$1$NearbyParentFragmentPresenter(NearbyParentFragmentPresenter.java:165)
at fr.free.nrw.commons.nearby.presenter.-$$Lambda$NearbyParentFragmentPresenter$SsMTyquU_-0wTkhYYQ8nWV2foSc.onClick(Unknown Source:2)
at android.view.View.performClick(View.java:7140)
at android.view.View.performClickInternal(View.java:7117)
at android.view.View.access$3500(View.java:801)
at android.view.View$PerformClick.run(View.java:27351)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

Device and Android version:

What make and model device (e.g., Samsung J7) did you encounter this on?
What Android version (e.g., Android 4.0 Ice Cream Sandwich or Android 6.0 Marshmallow) are you running?
Android 10, Pixel2 XL
Commons app version:
2.12.0

Would you like to work on the issue?
Yes

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