fix issue with loading tasks

This commit is contained in:
Phillip Thelen 2017-05-25 09:51:05 +02:00
parent 3316887153
commit f2739bc30c

View file

@ -33,6 +33,9 @@ public class DateDeserializer implements JsonDeserializer<Date>, JsonSerializer<
@Override
public synchronized Date deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) {
if (jsonElement.isJsonArray()) {
if (jsonElement.getAsJsonArray().size() == 0) {
return null;
}
jsonElement = jsonElement.getAsJsonArray().get(0);
}
if (jsonElement.getAsString().length() == 0) {