mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
use a default date instead of null
This commit is contained in:
@@ -102,10 +102,10 @@ public class FeedParser {
|
||||
|
||||
private Date validateDate(Date date) {
|
||||
if (date == null) {
|
||||
return null;
|
||||
return new Date();
|
||||
}
|
||||
if (date.before(START) || date.after(END)) {
|
||||
return null;
|
||||
return new Date();
|
||||
}
|
||||
return date;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user