Re: [JPP-Devel] R: IndexOutOfBoundsExceptions with Java 1.6.0_11

2008-12-17 Thread Sunburned Surveyor
Paolo, That was some good debugging. :] I'm constantly reminded of how much I need to learn about Java. Based on the information you gave me, I think I can patch the code. I'm not sure why this problem is just now showing up. Maybe the other programms have some ideas. I will work on a fix

[JPP-Devel] R: IndexOutOfBoundsExceptions with Java 1.6.0_11

2008-12-17 Thread P . Rizzi Ag . Mobilità Ambiente
I didn't debugged the code, but the exception says: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 so it seems that the coordinates ArrayList is empty when trying to access it's first element in: coordinates.get(0); Defensive programming would suggest something like: