null 处理
This commit is contained in:
parent
d0b5230812
commit
d7009e88b3
@ -127,7 +127,8 @@ public class UserProfileClientServiceImpl implements UserProfileClientService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Timestamp read(JsonReader in) throws IOException {
|
public Timestamp read(JsonReader in) throws IOException {
|
||||||
if (in.peek() == null) {
|
if (in.peek() == JsonToken.NULL) {
|
||||||
|
in.nextNull();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
long time = in.nextLong(); // 从时间戳反序列化
|
long time = in.nextLong(); // 从时间戳反序列化
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user