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());
@@ -12,7 +12,8 @@ namespace GUTSchedule.Test
{
var list = await Parser.GetFaculties();
Assert.IsNotNull(list);
Assert.IsTrue(list.Count > 0);
if (list.Count < 1)
Assert.Warn("No faculties available");
Console.WriteLine("Faculties list:");
list.ForEach(i =>
@@ -1 +1 @@
- Updated schedule parser
- Fixed application crashes when there is no public schedule available
@@ -1 +1 @@
- Обновлен парсер расписания
- Исправлены вылеты, когда нет публичного расписания
+2 -2
View File
@@ -1,2 +1,2 @@
## Core
- Updated schedule parser
## Android
- Fixed application crashes when there is no public schedule available