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

Buffering of polyline fails with an NPE when #129

Closed
willtemperley opened this issue Nov 8, 2016 · 4 comments
Closed

Buffering of polyline fails with an NPE when #129

willtemperley opened this issue Nov 8, 2016 · 4 comments

Comments

@willtemperley
Copy link
Contributor

I'm getting an NPE when buffering a polyline.

This happens when the Bufferer has decided the polyline is degenerate in Bufferer.bufferPolylinePath

Quick-and-dirty fix here by removing the reference to the null m_geometry:

willtemperley@70cfd8d

@stolstov
Copy link
Member

stolstov commented Nov 8, 2016

@willtemperley Thank you for reporting this. The fix should be
Polygon resultPolygon = new Polygon(point.getDescription());
Do you have a small repro case? The geometry could be saved to json file or string using OperatorFactoryLocal.

@willtemperley
Copy link
Contributor Author

I created the simplest test case I could which reproduced the problem - failing test here:
#130

@stolstov
Copy link
Member

stolstov commented Nov 9, 2016

@willtemperley Great! Thank you for the fix!

@willtemperley
Copy link
Contributor Author

A pleasure, cheers

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

2 participants