Closed orb1005 closed 6 years ago
I resolved this in https://github.com/mobileappdevhm/dev-team-1-cie-app-in-flutter/commit/c76f27cf9641806e7d5d64f462bdea109da07a3d
The cause of this is that Nine was returning Fakultät ## instead of just ## for departments, and the dropdown was using this to sort.
Thus the dropdown key was invalid, and the crash occurred. Temporary fix implemented to just trim the string from Nine, I'll implement a better fix later in our user builder so we don't have to worry about it.
@heatsink thank you for fixing this so fast
So it's still crashing for me... :-(
There is different error if the curriculum returned by nine is null (-> user does not have set any department).
Should be fixed with #221. Please check on the corresponding branch, or in master after it is merged and let me know if the problem still occurs on iOS.
I have decided to set the department to an empty string, so we do not need to set an default department. Maybe that is a good approach?!
Unfortunately, the app still crashes when you didn't specify your department on nine. Explanation: I fill in my user credentials and click on "LOGIN"
After that I land on the timetable page as expected
If I then click on courses no courses will be shown
A click on a different tab throws the error message
Hope this helps. I assume that some of the other students didn't choose a department so we should fix this as soon as possible.