aboutsummaryrefslogtreecommitdiff
path: root/juick-core/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-core/src/main/java')
-rw-r--r--juick-core/src/main/java/com/juick/xml/adapters/SimpleDateAdapter.java3
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 9cb569095..264f8c225 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);
}