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