ARFFHandler IndexOutOfBounds
Status: Beta
Brought to you by:
thomasabeel
ARFFHandler.java throws an index out of bounds when the class index is -1. Comparing with FileHandler.java, I believe the change is from this:
if (i > classIndex)
values[i - 1] = val;
To this
if (i != -1 && i > classIndex)
values[i - 1] = val;
That check brings nothing new to the table as i is a variable from 0 to number of attributes and should never be -1.
I guess you meant if (classIndex != -1 && i > classIndex)