E3EE estimateMemorySize() throws NPE in MultiPathImpl when the geometry is empty · Issue #192 · Esri/geometry-api-java · GitHub
[go: up one dir, main page]

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

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0