Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null pointer exception when computing convex hull with GeometryCollection type #194

Closed
yuyongyang800 opened this issue Aug 13, 2018 · 6 comments
Assignees
Milestone

Comments

@yuyongyang800
Copy link

yuyongyang800 commented Aug 13, 2018

Suppose I have a GeometryCollection with multiple polygons. The convexHull() method in OGCConcreteGeometryCollection class throws an exception:

java.lang.NullPointerException
at com.esri.core.geometry.ogc.OGCConcreteGeometryCollection.convexHull(OGCConcreteGeometryCollection.java:447)

In this case, the resultGeom object is initialized as null. The mp variable is also empty, since there are no point type geometry objects. This leads to an empty test on the null value in Line 447. Is this behavior correct? Could someone check this section of code? Thanks.

@stolstov
Copy link
Member

@yuyongyang800 Thank you for reporting. I'll take a look.

@yuyongyang800
Copy link
Author

Thanks for the fix.

@yuyongyang800
Copy link
Author

yuyongyang800 commented Aug 15, 2018

Hi @stolstov , do you have an idea when version 2.2.1 will be released?

@stolstov
Copy link
Member

@randallwhitman Randall, can we make a release?

@stolstov
Copy link
Member

@randallwhitman
Copy link
Contributor

Making note, but won't get to it immediately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants