1
0
mirror of https://github.com/XFox111/GUTSchedule.git synced 2026-04-22 06:58:01 +03:00

Fixed application crashes when there is no public schedule available

This commit is contained in:
Michael Gordeev
2021-01-09 23:34:25 +03:00
parent 922b175666
commit e3d2ffec48
5 changed files with 7 additions and 6 deletions
@@ -185,7 +185,7 @@ namespace GUTSchedule.Droid.Activities
private async void UpdateGroupsList()
{
if (course.SelectedItem == null)
if (course.SelectedItem == null || Faculties.Count < 1)
return;
Groups = await Parser.GetGroups(Faculties[faculty.SelectedItemPosition].id, (course.SelectedItemPosition + 1).ToString());