SERVER-97335ClosedFixed

Fix crash in shell_utils when using simple collator

[BF-35734|https://jira.mongodb.org/browse/BF-35734] surfaced an issue in the mongo (shell) executable. The shell's `_compareStringsWithCollation` function creates a collator object from BSON and then calls a method on it. However, `CollatorFactoryICU` [can also return a nullptr|https://github.com/10gen/mongo/blob/2e1e319f2975a4b5194e75f42a6af7197b5419bc/src/mongo/db/query/collation/collator_factory_icu.cpp#L527] when the BSON object contains In this case the caller must check the retu

Affected Versions
Versions known to exhibit this issue
8.1.0-rc0
Fixed Versions
Versions that include the fix
8.1.0-rc0
Components
Server components related to this issue
Shell
Labels
Tags and classification

No labels assigned.