-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
ALL
-
0
-
None
-
None
-
None
-
None
-
None
-
None
-
None
All paths that lead to this null pointer comparison already dereference the pointer earlier
Defect 101903 (STATIC_C)
Checker REVERSE_INULL (subcategory none)
File: /src/mongo/db/db.cpp
Function mongo::<unnamed>::shutdownTask()
/src/mongo/db/db.cpp, line: 1076
Null-checking "opCtx" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
if (opCtx) {
- is duplicated by
-
SERVER-29324 Coverity analysis defect 101644: Dereference before null check
-
- Closed
-
- related to
-
SERVER-30425 Coverity analysis defect 101902: Dereference after null check
-
- Closed
-