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

estimateMemorySize() throws NPE in MultiPathImpl when the geometry is empty #192

Closed
tdcmeehan opened this issue Aug 1, 2018 · 1 comment

Comments

@tdcmeehan
Copy link

Each of these will throw a NPE:

        OGCGeometry.fromText("LINESTRING EMPTY").estimateMemorySize();
        OGCGeometry.fromText("MULTILINESTRING EMPTY").estimateMemorySize();
        OGCGeometry.fromText("GEOMETRY EMPTY").estimateMemorySize();
        OGCGeometry.fromText("MULTIGEOMETRY EMPTY").estimateMemorySize();

Expected: it should not matter if it's empty, it should return the estimated memory size without error.

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