NullPointerException when isochrones are generated for coordinates in the middle of an ocean
未关闭
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 438
- 派生
- 117
- PR 合并指标
- 30 天内没有已合并 PR
描述
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)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 FeatureCollection.java 中的堆栈跟踪开始,尤其关注 GsonTypeAdapter.read 路径,并使用报告中的海洋坐标针对 Java SDK v5.6.0 重现该请求。跟踪该等时圈请求返回的响应,并验证解析能够完成且不会出现报告中的 NullPointerException。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100