Skip to content

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

@tdcmeehan

Description

@tdcmeehan

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions