Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3635

GeoJSON Geometry constructors throw NPE

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.12.3, 4.0.2
    • Affects Version/s: None
    • Component/s: Builders
    • 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:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            oren.ovadia@mongodb.com Oren Ovadia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: