Closed RCmerci closed 1 month ago
d/find-datom will throw an error when calling on an empty-db. Is this behavior by design or a mistake?
d/find-datom
> (d/find-datom (d/empty-db {:age {:db/index true}}) :eavt) Execution error (NullPointerException) at me.tonsky.persistent-sorted-set/seek (persistent_sorted_set.clj:51). Cannot invoke "me.tonsky.persistent_sorted_set.Seq.seek(Object)" because "seq" is null
I expect it to return nil when an empty-db is used as arg to find-datom.
nil
find-datom
Thanks! Pushed 1.7.3
d/find-datom
will throw an error when calling on an empty-db. Is this behavior by design or a mistake?I expect it to return
nil
when an empty-db is used as arg tofind-datom
.