You are trying to use an empty array at line 5300 of the RTUUOpportunityCategory class which is being called by line 57 of the RTUUStartOpportunityCategory class. You then post a huge amount of unformatted and extremely difficult to read and interpret code without indicating what line the error is falling on. I'm not sure how we can help you with this given the information that you've presented so far. If you still need our help, you'll have to put in some effort to reformulate your question and your code so that it is possible that we can help you. I suggest that you read the links in my signature below on how to ask smart questions, how to use code tags, and how to create an SSCCE.