Skip to content

Commit

Permalink
修复map的key为number遇到null时解析问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyunchao committed Aug 29, 2022
1 parent 3c5b960 commit c29fc2c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,8 @@ static Object parseNumberValue(char[] buf, int fromIndex, int endIndex, int numb
int len = endIndex - fromIndex;
if (beginChar == 'n' &&
len == 4 &&
buf[1] == 'u' &&
buf[2] == 'l' &&
buf[fromIndex + 1] == 'u' &&
buf[fromIndex + 2] == 'l' &&
endChar == 'l') {
return null;
}
Expand Down

0 comments on commit c29fc2c

Please sign in to comment.