Permalink
Browse files

avoid NPE when date is null

1 parent 66139d5 commit 6b9452afb330194279e1998bc03a1159895c89e9 @beiwei30 beiwei30 committed Jun 12, 2016
@@ -601,7 +601,7 @@ void deserialize(AbstractHessianInput in, Object obj)
try {
java.util.Date date = (java.util.Date) in.readObject();
- value = new java.sql.Date(date.getTime());
+ if (date != null) value = new java.sql.Date(date.getTime());
_field.set(obj, value);
} catch (Exception e) {

0 comments on commit 6b9452a

Please sign in to comment.