Closed GiuseppeCM closed 5 years ago
Good catch, but does this fix the bug? undefined is falsy, so I would expect it to still crash.
A safer test would be if (s == null)
. Strangely enough, null
is only ==
to undefined
and itself
, which is handy in this case. Anything else should coerce to a string OK.
Oh I see.
Thanks.
In case that you have defined a cursor with filter
.search(string)
and string is undefined, the server process crash.