-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
ALL
-
Sharding 2017-10-02, Sharding 2017-12-04
-
None
-
None
-
None
-
None
-
None
-
None
-
None
All paths that lead to this null pointer comparison already dereference the pointer earlier
Defect 101644 (STATIC_C)
Checker REVERSE_INULL (subcategory none)
File: /src/mongo/db/db.cpp
Function shutdownTask()
/src/mongo/db/db.cpp, line: 1029
Null-checking "serviceContext" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
if (serviceContext && serviceContext->getGlobalStorageEngine()) {
- duplicates
-
SERVER-30424 Coverity analysis defect 101903: Dereference before null check
-
- Closed
-