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

GeoJSON Geometry constructors throw NPE

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.12.3, 4.0.2
    • None
    • Builders
    • None

    Description

      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.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            oren.ovadia@mongodb.com Oren Ovadia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: