Hashtable "Array index out of range"

Sorry to ask such a “fix my code” question, but I really don’t understand alot about how hashtables work. I am using PreviewLabs playerprefs plugin to serialize data into a text file, and recently i’ve been getting an array index out of range error on 270 (attached script: http://puu.sh/4DqsB.txt).Why is this happening with a hashtable?

Are you sure it’s the hashtable? You use indices into the array “parameterContent” without checking how big it is, so that’d be my guess.

Long story short, it was a problem in the data I was trying to save, the script would separate items using code 0, and I was saving data with code zero, so I added 1 to all of my character codes (bitshifted) and that solved the problem. Thanks for the insight scamp, I wouldn’t have found the proble without it.