-
Notifications
You must be signed in to change notification settings - Fork 874
NpgsqlPolygon NullReferenceException #5112
Copy link
Copy link
Milestone
Description
Steps to reproduce
NpgsqlPolygon polygon = new NpgsqlPolygon();
polygon.Add(new NpgsqlPoint(1, 1));//throw NullReferenceExceptionThe 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
Reactions are currently unavailable