Issue #14 new

Shape.checkPoints() causes an ArrayIndexOutOfBoundsException

Anonymous created an issue

Hi ! I've experienced a problem in the Shape.checkPoints() method, line 653 (build 261, the last I got right now).

Indeed, when I create a new Polygon without points and that I try to count how many points it contains, I have an ArrayIndexOutOfBoundsException exception. I do not understand what is the problem, yet it's here...

The simpliest way to encounter this crash is the following code :

Polygon polygon = new Polygon() ;
polygon.getPointCount();

Comments (0)

  1. Log in to comment