fix: Fatal Exception IllegalStateException: description must not be null
fix crash  java.lang.IllegalStateException description
must not be null at compareEvents(CalendarUtils.kt:303)
fixes:
@@ -299,6 +299,7 @@ object CalendarUtils {
timeInMillis = getLong(getColumnIndex(CalendarContract.Events.DTSTART))
}
val description = getString(getColumnIndex(CalendarContract.Events.DESCRIPTION))
+ if (description != null) {
run breaker@{
datesList.forEachIndexed { index, unit ->
if (description.contains(unit.title, ignoreCase = true)) {
@@ -320,6 +321,7 @@ object CalendarUtils {
}
}
}
+ }
} while (moveToNext())
}
}
