I have this TaskSchedule running in a SpringBoot application
@Scheduled(cron = "0 0/10 * * * ?")
    public void hotelTime() throws IOException {
            LOG.info("updating all hotels at " + new Date());
            List<Hotel> currenciesInfo = hotelService.getAllHotelsInfo();
            for (Hotel hotelInfo : hotelsInfo) {
                hotelPriceService.updateHotelPrice (hotelInfo, usdRate);
            }
            LOG.info("updated at " + new Date());
            currencyPriceService.deletePriceOlderThan1Month ();
    }
But I see this error in the Log file
 2018-03-25 19:44  [pool-2-thread-1] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler.handleError(95) - Unexpected error occurred in scheduled task.
java.lang.NullPointerException: null
 
    