Uploaded image for project: 'Scala'
  1. Scala
  2. SCALA-301

Harden the CaseClassCodec when finding null values.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      JVM Sprint 39

      Description

      With the case class Person(name: String) encoding Person(null) will throw a NPE.

      If though its heretical Scala to create such an instance, lets make it throw a CodecConfigurationException instead.

        Attachments

          Activity

            People

            • Assignee:
              ross.lawley Ross Lawley
              Reporter:
              ross.lawley Ross Lawley
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: