Correcting error while updating results in a case with a test cancelled. It throwed an ugly NullPointerException