diff --git a/CHANGELOG.md b/CHANGELOG.md index 93f2a77..1bd061b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.4.2 + +- :bug: Fixes error that occured when subject doesn't have time info. Fixes issue [#11](https://github.com/iiumschedule/albiruni/issues/11) + ## 1.4.1 - :bug: Fix issue where some compounded days format (eg: `TWTH`) could not be parse. See [#8](https://github.com/iiumschedule/albiruni/issues/8), [#10](https://github.com/iiumschedule/albiruni/issues/10) diff --git a/lib/src/util/parse_albiruni_html.dart b/lib/src/util/parse_albiruni_html.dart index 609747c..a8ee7c6 100644 --- a/lib/src/util/parse_albiruni_html.dart +++ b/lib/src/util/parse_albiruni_html.dart @@ -70,7 +70,7 @@ Subject parseSubject(Element element) { List dayTime = []; // Only process day & time if they're exist - if (day.isNotEmpty) { + if (day.isNotEmpty && time.isNotEmpty) { List tempDayTime = []; // Combine the day & time into DayTime object diff --git a/pubspec.yaml b/pubspec.yaml index ba57845..0b1c289 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: albiruni description: A wrapper to easily access IIUM's Course Schedule data. -version: 1.4.1 +version: 1.4.2 repository: https://github.com/iqfareez/albiruni issue_tracker: https://github.com/iqfareez/albiruni/issues topics: