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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user