diff --git a/app/src/main/java/org/cutem/cutecalendar/model/HolidayManager.java b/app/src/main/java/org/cutem/cutecalendar/model/HolidayManager.java index ed5e57e..4ef2e74 100644 --- a/app/src/main/java/org/cutem/cutecalendar/model/HolidayManager.java +++ b/app/src/main/java/org/cutem/cutecalendar/model/HolidayManager.java @@ -56,7 +56,7 @@ public class HolidayManager { String time = o.get("holiday_time").getAsString(); Calendar c = CalendarUtil.constructCalendar(time, "0:0"); - if (c != null && CalendarUtil.isSameDay(c, date)) { + if (CalendarUtil.isSameDay(c, date)) { return o.get("name").getAsString(); } } @@ -85,7 +85,7 @@ public class HolidayManager { String time = e.getAsString(); Calendar c = CalendarUtil.constructCalendar(time, "0:0"); - if (c != null && CalendarUtil.isSameDay(c, date)) { + if (CalendarUtil.isSameDay(c, date)) { return true; } }