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

NullPointerException when isochrones are generated for coordinates in the middle of an ocean #1220

Open
arjunsingripm opened this issue Dec 4, 2020 · 0 comments

Comments

@arjunsingripm
Copy link

@arjunsingripm arjunsingripm commented Dec 4, 2020

For example, for the following coordinates - longitude - 0.10006148, latitude - 0.09864120000000001, I get the exception below. I am using v5.6.0 of the Java SDK.

java.lang.NullPointerException: Null type
	at com.mapbox.geojson.FeatureCollection.<init>(FeatureCollection.java:160)
	at com.mapbox.geojson.FeatureCollection$GsonTypeAdapter.read(FeatureCollection.java:385)
	at com.mapbox.geojson.FeatureCollection$GsonTypeAdapter.read(FeatureCollection.java:278)
	at retrofit2.converter.gson.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:39)
	at retrofit2.converter.gson.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:27)
	at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:225)
	at retrofit2.OkHttpCall.execute(OkHttpCall.java:188)
	at com.mapbox.core.MapboxService.executeCall(MapboxService.java:84)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant