java.lang.IllegalArgumentException: Flat hash tables cannot contain null elements.

Scala JIRA | James Iry | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [SI-6908] FlatHashTable and things that depend on it like mutable.HashSet cannot store nulls - Scala

    scala-lang.org | 1 year ago
    java.lang.IllegalArgumentException: Flat hash tables cannot contain null elements.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Flat hash tables cannot contain null elements.

      at scala.collection.mutable.FlatHashTable$HashUtils$class.elemHashCode()
    2. Scala
      FlatHashTable$class.containsEntry
      1. scala.collection.mutable.FlatHashTable$HashUtils$class.elemHashCode(FlatHashTable.scala:348)
      2. scala.collection.mutable.HashSet.elemHashCode(HashSet.scala:41)
      3. scala.collection.mutable.FlatHashTable$class.containsEntry(FlatHashTable.scala:109)
      3 frames