I was able to duplicate the exception using the demo data setup by createStructureWithInitialData.sql:
- Goto Program Admin > Basket Weaving (Demo) > All degrees in Basket Weaving.
- Add or edit a course.
Screenshot of exception: http://i.imgur.com/16Mqjs2.png
The expected behaviour can be seen in the other Basket Weaving program:
- Goto Program Admin > Basket Weaving (Demo) > B.Sc. 4 year in Basket Weaving .
- Add or edit a course.
Poking at the lines causing the exception, I found that masteryOptionValues was empty when it tries to read from it. I can't find where Mastery Option Values is configured in the UI or where the code responsible for inserting it into the database is.
Resetting the database using createBlankStructure.sql, I tried to create an Organization, Program, Program Outcomes, and Course from scratch. Nowhere in the whole process does the mastery_option_values table gets a value inserted, so I'm quite confused.
Any help would be greatly appreciated, thanks!