Skip to content
Commit f9dfcdc7 authored by Daniel Kappe's avatar Daniel Kappe
Browse files

0029692: Fix the uncatched division by 0 error

The FormulaQuestion throws an uncatched error (division by 0) in case
"No Restrictions" are set for the "Result Type Selection". This was
fixed for "Fraction" and "Coprime Fraction" in commit
b9b74b66 and this solution is now
extended to "No Restrictions". This fix was adjusted though, because in
case of a ilMathDivisionByZeroException the users result was set to "0"
which might be a correct answer. Now the division by 0 lets the check
function return false, except in case the formula also threw this
exception.

Mantis-Ticket: 0029692
parent 75def321
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment