Skip to content

NpgsqlPolygon NullReferenceException #5112

@SoftStoneDevelop

Description

@SoftStoneDevelop

Steps to reproduce

NpgsqlPolygon polygon = new NpgsqlPolygon();
polygon.Add(new NpgsqlPoint(1, 1));//throw NullReferenceException

The issue

Default constructor not overridden in NpgsqlPolygon type.
I expect existing this constructor:

public NpgsqlPolygon()
{
    _points = new List<NpgsqlPoint>();
}

Is there a reason why this is not done?

Further technical details

Npgsql version: 7.0.4
PostgreSQL version: PostgreSQL 15.2, compiled by Visual C++ build 1914, 64-bit
Operating system:
Edition Windows 10 Pro
Version 22H2
OS build 19045.3086

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions