[SERVER-30425] Coverity analysis defect 101902: Dereference after null check Created: 31/Jul/17  Updated: 11/Aug/17  Resolved: 11/Aug/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Esha Maharishi (Inactive)
Resolution: Duplicate Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-30424 Coverity analysis defect 101903: Dere... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2017-08-21
Participants:

 Description   

Pointer is checked against null but then dereferenced anyway

Defect 101902 (STATIC_C)
Checker FORWARD_NULL (subcategory none)
File: /src/mongo/db/db.cpp
Function mongo::<unnamed>::shutdownTask()
/src/mongo/db/db.cpp, line: 985
Comparing "opCtx" to null implies that "opCtx" might be null.

        if (opCtx) {


Generated at Thu Feb 08 04:23:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.