Community
Participate
Working Groups
When setting the count value of a CountedUnit to a value greater than the number of counts its contents can be executed/applied, execution of the CountedUnit will throw a NullPointerException as soon as the remaining number of loop executions is not 0 and its contents can not be applied. This is a somewhat unexpected behaviour; when count is set to -1 to specify an infinite loop, execution just stops if there is no Rule/TransformationUnit to be applied/executed in its body without throwing a NullPointerException. Suggested solution: Either allow setting a parameter to control whether an Exception is thrown (current behaviour) or execution just stops (behaviour for count = -1), or just stop execution of the CountedUnit.
I have fixed this bug.