-
Type: Bug
-
Resolution: Done
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Dotnet Drivers
-
Not Needed
-
Dereference null return value
If the function actually returns a null reference, a null reference exception will occur. Return value of function which returns null is dereferenced without checking
/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToPipelineTranslators/UnionMethodToPipelineTranslator.cs:42: NULL_RETURNS 138095 "CollectionNamespace.get" returns "null" (checked 1 out of 5 times). (The virtual call resolves to "MongoDB.Driver.Linq.Linq3Implementation.MongoQueryProvider`1.CollectionNamespace.get".)
/src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToPipelineTranslators/UnionMethodToPipelineTranslator.cs:42: NULL_RETURNS 138095 Calling a method on null object "secondProvider.CollectionNamespace".