So you've answered my question by pointing out lines that do not error and by not telling me what the error is.

So here's my answer. The problem with the code is not on line 107 and it's not the ++ operator that is causing the problem.