When constructing geometries with immutable lists such as List.of(..), NPE's are thrown from !list.contains(null) checks performed by the constructors.
This does not happen in the codecs because ArrayList permits `null` arguments and elements.
Java's List API permits List implementations to either accept nulls or throw NPE.
- is duplicated by
-
JAVA-3682 PolygonCoordinates Constructor throws NPE
- Closed