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

[BUG] parseObject("null")报错 #1867

Closed
guoyachao1 opened this issue Sep 14, 2023 · 1 comment
Closed

[BUG] parseObject("null")报错 #1867

guoyachao1 opened this issue Sep 14, 2023 · 1 comment
Labels
bug Something isn't working fixed
Milestone

Comments

@guoyachao1
Copy link

guoyachao1 commented Sep 14, 2023

问题描述

简要描述您碰到的问题。

环境信息

请填写以下信息:

  • OS信息: [e.g.:CentOS 8.4.2105 4Core 3.10GHz 16 GB]
  • JDK信息: [e.g.:Openjdk 1.8.0_312]
  • 版本信息:[e.g.:Fastjson2 2.0.40]

重现步骤

如何操作可以重现该问题:

      System.out.println(com.alibaba.fastjson.JSON.parseObject("null", Map.class));
      System.out.println(com.alibaba.fastjson2.JSON.parseObject("null", Map.class));
//可在此输入示例代码

期待的正确结果

结果一样

相关日志输出

Exception in thread "main" com.alibaba.fastjson2.JSONException: illegal input, offset 1, char n

image

附加信息

如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。

@guoyachao1 guoyachao1 added the bug Something isn't working label Sep 14, 2023
@wenshao wenshao added this to the 2.0.41 milestone Sep 16, 2023
@wenshao wenshao added the fixed label Sep 17, 2023
@wenshao
Copy link
Member

wenshao commented Oct 6, 2023

https://github.com/alibaba/fastjson2/releases/tag/2.0.41
问题已修复,请用新版本

@wenshao wenshao closed this as completed Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants