Here there is such a code
return Observable.just(new Date())// .map(// iEndDate -> { Date latestDate = (Date) mEmployeeCallsByDate.keySet().toArray()[mEmployeeCallsByDate.size() - 1]; if (latestDate.after(iEndDate)) { return latestDate; } return iEndDate; }// )// .blockingFirst(); How can you catch a mistake? Let's say nalpointer
If you use subscribe() instead of blockingFirst then you can subscribe to an error, and then how?
latestDateorendDate, according to the condition - Aleksey Timoshchenko