dikalo / lienzo-core

Lienzo Structure Graphics GWT Toolkit
Apache License 2.0
51 stars 58 forks source link

Geometry.getPathIntersect() sometimes return a Point2D with a null JSO #192

Open Christopher-Chianelli opened 7 years ago

Christopher-Chianelli commented 7 years ago

Geometry.getPathIntersect(), sometimes incorrectly returns a Point2D without a corresponding JSO object. Using said Point2D will cause a NPE. Unfortunately, there is no way to check if the Point2D has a null JSO since the JSO is inaccessible. Geometry.getPathIntersect() should either return null, raise an exception, or return a valid Point2D instead of a "broken" Point2D so we can detect this case and handle it appropriately .