imperiumlabs / GeoFirestore-Android

GeoFirestore for Android - Realtime location queries with Firestore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when updating geoQuery.center

brendanosborne opened this issue · comments

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
It looks like in GeoQuery.class > setupQueries() the handle is not being returned successfully from the handles HashMap:

44437711-d0e8e400-a5fe-11e8-89da-7bbb8d1e19bf

I'm having the same problem

I opened a PR to check this, @theonlynick0430 can you look at it when you get a chance?

@dhruvshah1214 how can I get the fix? The version still seems to be 1.1.1 ?

@dhruvshah1214 Any news on a new version with this fix included? It seems to have been fixed but is not released.

Still getting this error settings the center and the radius.

Edit: The library obtained via gradle have the setters for radius and center, but they didn't work; however if you clone this repo and make your own .aar file it works.