Ref.broken(null) creates a value which causes Ref.optProblem/1 to misbehave. ? def r := Ref.broken(null) # value: <ref broken by null> ? Ref.optProblem(r) == null # value: true ? Ref.state(r) # value: "BROKEN" -- Kevin Reid