The message is saying that an index is out of the allowable range. I believe this is happening when the following line is executed in the TreeVIew adapter:
bool bExpand = (state[0] == 'e');
The variable "state" is a character string from which I'm trying to get the zeroth (first) character... in order to determine if it is the letter "e." However, if "state" is empty (no length) then it isn't legitimate to access its first letter. If you try (like I do in the statement above) and the string is empty you get the message shown in this posting (albeit in the appropriate language for you).
The question then hinges on why "state" ended up not having any characters in it. Normally, such is not the case... or at least I certainly didn't anticpate that that would happen at that point in the code. So you need to look upward in the code to see how "state" gets established before being passed to this method (that is the one that's crashing). That analysis led to the questions I was asking earlier.
Nonetheless, I'd prefer that the author of this posting add a direct translation of this error message, too, since my linguistic skills are certainly limited and suspect! Meanwhile, interested readers might want to go to http://translate.google.com/translate_t, enter the phrase we want translated and choose (from the dropdown) that you want the translation between "Portuguese to English." This approximation yields a translation of "The index was of the limits of the matrix."
Russ Helfand
Groovybits.com