GeoJSON Geometry constructors throw NPE

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.12.3, 4.0.2
    • Affects Version/s: None
    • Component/s: Builders
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Jeffrey Yemin
              Reporter:
              Oren Ovadia
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: