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

Scala JIRA | James Iry | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards 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