Using scala, 2.8:
import scala.collection.mutable
import mutable.MultiMap
val m = new mutable.HashMap[String, mutable.Set[String]] with MultiMap[String, String]
m.addBinding("key", null)
m exists { _._2 contains null }
prints false
m exists { _._2 isEmpty }
prints false
m("key").size
prints 1
How do I find the first key (or any) key that was added via an addBinding call with a value of null?