adding an activity null check
This commit is contained in:
parent
fda34a0df4
commit
43bd1718f7
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue