I tried posting this question eariler but I believe my computer hickuped and the post was not established, least, I did not see it thus am reposting.
I have a table that I am saving to a file using StringUtils.SaveCSV2. The table can be empty at times before saving. When this occurs, the List variable (type List) will have zero data for a size of zero.
The error I am getting is: IndexOutOfBoundsException: Invalid index 0, size is 0.
How do I get around this? I do not want to add dummy data just so StringUtils.SaveCSV2 will work.
I have a table that I am saving to a file using StringUtils.SaveCSV2. The table can be empty at times before saving. When this occurs, the List variable (type List) will have zero data for a size of zero.
The error I am getting is: IndexOutOfBoundsException: Invalid index 0, size is 0.
How do I get around this? I do not want to add dummy data just so StringUtils.SaveCSV2 will work.