The expression in line 67 evaluates to −1, which I think means nrOfPerfrms is 0. I presume it shouldn't be 0. You need to verify that the range of that expression is always x > −1 and x < sourceObjects.length.
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!