In FeedProcessor.java, we are trying to get value from Optional<Date> object without checking whether a value is present in it or not. This throwing an exception "java.util.NoSuchElementException" if we do stats.getCalendarDateStart().get() for null returned value from stats.getCalendarDateStart(). So, before trying to get value, we need to check for null.
In FeedProcessor.java, we are trying to get value from
Optional<Date>
object without checking whether a value is present in it or not. This throwing an exception "java.util.NoSuchElementException" if we dostats.getCalendarDateStart().get()
for null returned value fromstats.getCalendarDateStart()
. So, before trying to get value, we need to check for null.