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

Error when updating geoQuery.center #1

Open
brendanosborne opened this issue Aug 22, 2018 · 5 comments
Open

Error when updating geoQuery.center #1

brendanosborne opened this issue Aug 22, 2018 · 5 comments

Comments

@brendanosborne
Copy link

brendanosborne commented Aug 22, 2018

Hi Guys, I can't work this one out...

This works okay if the lat and lng don't change:
geoQuery?.center = newLatLng

If the lat and lng are different I am getting this error:

java.lang.NullPointerException: Attempt to read from field 'com.google.firebase.firestore.ListenerRegistration org.imperiumlabs.geofirestore.GeoQuery$GeoHashQueryListener.childAddedListener' on a null object reference

@brendanosborne
Copy link
Author

It looks like in GeoQuery.class > setupQueries() the handle is not being returned successfully from the handles HashMap:

image

@gustavjon
Copy link

I'm exeriancing this problem on 'com.github.imperiumlabs:GeoFirestore-Android:v1.1.1'
Why was this issue closed?

@brendanosborne
Copy link
Author

What happened to the replies to this thread? Someone resolved the issue and I asked when it would be added to the next build...

@gustavjon
Copy link

This issue is fixed on master so using a snapshot build solves the problem. I'm not really comfortable using snapshot builds though so a proper release with this fix would be very welcome

@brendanosborne
Copy link
Author

brendanosborne commented Nov 30, 2018 via email

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

2 participants