mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
adding an activity null check
This commit is contained in:
@ -70,6 +70,9 @@ class EventListFragment : Fragment(), DBHelper.GetEventsListener, DBHelper.Event
|
||||
}
|
||||
|
||||
mAllEvents = events
|
||||
if (activity == null)
|
||||
return
|
||||
|
||||
val eventsAdapter = EventListAdapter(activity as SimpleActivity, listItems, this) {
|
||||
editEvent(it)
|
||||
}
|
||||
|
Reference in New Issue
Block a user