forked from github/wulkanowy-mirror
Ignore no current student during avatar loading (#1210)
This commit is contained in:
parent
94957850c3
commit
8d7110735d
@ -113,7 +113,7 @@ class MainPresenter @Inject constructor(
|
||||
|
||||
private fun showCurrentStudentAvatar() {
|
||||
val currentStudent =
|
||||
studentsWitSemesters!!.single { it.student.isCurrent }.student
|
||||
studentsWitSemesters?.singleOrNull { it.student.isCurrent }?.student ?: return
|
||||
|
||||
view?.showStudentAvatar(currentStudent)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user