diff options
Diffstat (limited to 'juick-core')
-rw-r--r-- | juick-core/src/main/java/com/juick/xml/adapters/SimpleDateAdapter.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/juick-core/src/main/java/com/juick/xml/adapters/SimpleDateAdapter.java b/juick-core/src/main/java/com/juick/xml/adapters/SimpleDateAdapter.java index 9cb56909..264f8c22 100644 --- a/juick-core/src/main/java/com/juick/xml/adapters/SimpleDateAdapter.java +++ b/juick-core/src/main/java/com/juick/xml/adapters/SimpleDateAdapter.java @@ -20,6 +20,9 @@ public class SimpleDateAdapter extends XmlAdapter<String, Date> { @Override public String marshal(Date v) throws Exception { + if (v == null) { + return ""; + } synchronized (dateFormat) { return dateFormat.format(v); } |