Please only link to the scripts, don't copy them into your posts - there are a lot of reasons for this, one one probably happened here:
You deleted or added lines, because when I try to find the line from the bug picture, I find a comment line that has no methods to be executed.
So the script as it is in your project is different from the one you posted here - I suggest you first check if the error is still there if you replace you project's version of the script with the original script again.
If the bug still happens, give us the corrected error message with a link to the script as it is in your project.
My first guess would be that you're missing a space in the line where the bug really happens, but I can't check that with the bungled copy above because I can't find the correct line there...