Now when I tried this the indices looked perfectly reasonable, which suggested a problem with the array... I tried printing out the length of the pieces arrays - I got lots of ones, which seemed strange. So I looked at the code generating the arrays and was struck by line 20 of the Table class:
String pieces = split(rows[i], TAB);
...But when I copied the .tsv data (that's tab separated values) across I had noticed that the values weren't separated by tabs, but by spaces... So you can either fix your data, or split on spaces (i.e. split(rows[i], " "); ) instead; though I'm not sure I'd consider a space as a particularly safe delimiter...
Check the log window - do you get a message "No row named '[name]' was found"? The getRowIndex() method returns -1 if it doesn't find a match and from a quick glance that seems like the most likely cause for it trying an index of -1. Could be that there's a typo in the data...
Leave a comment on blindfish's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic