adding a null check at week fragment

This commit is contained in:
tibbi 2018-02-20 10:16:40 +01:00
parent 97d6ee1427
commit 817b35eabb

View file

@ -107,6 +107,10 @@ class WeekFragment : Fragment(), WeeklyCalendar {
updateCalendar()
mScrollView.onGlobalLayout {
if (context == null) {
return@onGlobalLayout
}
minScrollY = mRowHeight * context!!.config.startWeeklyAt
maxScrollY = mRowHeight * context!!.config.endWeeklyAt