null 处理

This commit is contained in:
tianfeng 2025-12-15 20:04:54 +08:00
parent d0b5230812
commit d7009e88b3

View File

@ -127,7 +127,8 @@ public class UserProfileClientServiceImpl implements UserProfileClientService {
@Override
public Timestamp read(JsonReader in) throws IOException {
if (in.peek() == null) {
if (in.peek() == JsonToken.NULL) {
in.nextNull();
return null;
}
long time = in.nextLong(); // 从时间戳反序列化