I'm populating an ArrayList 'pts' of Points.
To me this seems pretty straightforward but after this runs there are null elements in the arraylist.
for(int i =0; i< currentt.getPointCount();i++){
File pXml = new File(tourFolderPath + "point_" + (i+1) +".xml");
if (pXml.exists()){
pt = (Point)MXP.createObject(pXml, 2);
}
pts.add(pt);
}
After inspecting in the debugger it seems that the very first time the line "pts.add(pt);" is run it adds one legitimate point element. However, it also adds 10 other null elements.
Any ideas?
