Skip to content

Commit

Permalink
avoid NPE when date is null
Browse files Browse the repository at this point in the history
  • Loading branch information
beiwei30 committed Jun 12, 2016
1 parent 66139d5 commit 6b9452a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6b9452a

Please sign in to comment.