Hopefully someone can help me with this!
I'm getting "null pointer" and "set to null" errors all of a sudden from a new script I'm working on (based around a "Wheel of Fortune" style game).
Could someone please take a look and see what's causing this? I've checked for all the things I thought could cause this and the mystery is that it seems to be caused by a new section of code I just added that has nothing to do with the values that show errors.
Also, the script seems to run fine regardless (no crashes) despite the error reports.
The code blocks I added between no errors and the errors being reported are "loadCustomWheel" and "saveCustomWheel"; for some reason, commenting out the contents of the first ten lines or so of "loadCustomWheel" stops the null errors elsewhere coming up when the script is checked, and for the life of me, I can't figure out why!

Thanks in advance, whoever can help me fix what's almost certainly a very simple mistake I've made somewhere!
(the images, etc. to go with this script are all already in the "Spanking Game" zip I posted in another thread)