making a context nullable

This commit is contained in:
tibbi 2018-08-05 20:43:15 +02:00
parent 8823f8199d
commit edd6bafa43
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class DayFragment : Fragment() {
fun updateCalendar() {
val startTS = Formatter.getDayStartTS(mDayCode)
val endTS = Formatter.getDayEndTS(mDayCode)
context!!.dbHelper.getEvents(startTS, endTS) {
context?.dbHelper?.getEvents(startTS, endTS) {
receivedEvents(it)
}
}