-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Internal Code
-
Query Optimization
-
Fully Compatible
Dereference after null check
Either the check against null is unnecessary, or there may be a null pointer dereference. Pointer is checked against null but then dereferenced anyway
/src/mongo/db/pipeline/expression_context.cpp:136: FORWARD_NULL 138136 Comparing "opCtx" to null implies that "opCtx" might be null.