Exception on StudycardSession start after deleting Vocables

Bug #1022985 reported by Michael Kargl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Qtrainer
Status tracked in Indev
Indev
Fix Released
High
Michael Kargl

Bug Description

After I delete every Vocable of one Lesson and try to start or continue a new Studycard Session the program throws an Exception: NullpointerException

Revision history for this message
Michael Kargl (michael-kargl-p) wrote :

This is triggered by some missing code that checks whever there have been cards generated or not. It cant generate cards from a lesson that has no vocables. The module tries to fetch some cards of an empty list... which generates this exception. I will fix that in the next commit (by Sunday at the latest).

security vulnerability: no → yes
security vulnerability: yes → no
Changed in qtrainer:
assignee: nobody → Michael Kargl (michael-kargl-p)
importance: Undecided → High
summary: - Exception is being thrown when starting StudycardSession
+ Exception on StudycardSession start when deleting Vocables
summary: - Exception on StudycardSession start when deleting Vocables
+ Exception on StudycardSession start after deleting Vocables
Revision history for this message
Michael Kargl (michael-kargl-p) wrote :

Bug has been fixed. It now checks on initialization if cards could have been created. If not then the program retreats to the previously opened module (caller) and shows a messagebox that informs the user of this particular empty lesson.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.