Code: Select all
for (int datasets=0; datasets<plot.getDatasetCount(); datasets++)
{ try{ CategoryDataset dset = plot.getDataset(datasets);
...
}
catch(Exception e)
{ System.out.println(e.toString());}
}
Since upgrading to 1.0.19, my first call to getDataset returns the one at ID 0, but the second call is returning NULL because there is no dataset with and ID of "1". If I specify plot.getDataset(10) then I get the expected dataset, but that's not the functionality that I'm used to.
Did something change or am I doing something wrong?
Thanks,
Kevin