Fastjson: util/FieldInfo.java 里 getInheritGenericType() 可疑的空指针解引用

Created on 27 Nov 2017  ·  2Comments  ·  Source: alibaba/fastjson

Hi,

我们的代码检查器 Pinpoint 报告了一处可疑的空指针解引用,
https://github.com/alibaba/fastjson/blob/fcd2ae7723ddc84191cc9b90b453d58b30c02e2c/src/main/java/com/alibaba/fastjson/util/FieldInfo.java#L349-L378

349 行是否可能返回 false,导致 377 行使用 class_gd 时触发空指针解引用?

祝好,
Sourcebrella Inc.

bug

Most helpful comment

https://github.com/alibaba/fastjson/releases/tag/1.2.42
新版已发布,请使用新版本。

All 2 comments

问题确实存在,已经修复,将会在下一个版本中带上,谢谢反馈!

https://github.com/alibaba/fastjson/releases/tag/1.2.42
新版已发布,请使用新版本。

Was this page helpful?
0 / 5 - 0 ratings