adding an activity null check

This commit is contained in:
tibbi 2017-02-07 23:40:12 +01:00
parent fda34a0df4
commit 43bd1718f7
1 changed files with 3 additions and 0 deletions

View File

@ -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)
}