Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68817

Coverity analysis defect 122671: Dereference after null check

    • Fully Compatible
    • ALL
    • Server Serverless 2022-08-22, Server Serverless 2022-10-31

      Dereference after null check

      Either the check against null is unnecessary, or there may be a null pointer dereference. Pointer is checked against null but then dereferenced anyway
      /src/mongo/db/repl/tenant_migration_access_blocker_util.cpp:233: FORWARD_NULL 122671 Calling "this->donorMtab.operator bool()" implies that "this->donorMtab" might be null-like.
      /src/mongo/db/repl/tenant_migration_access_blocker_util.cpp:236: FORWARD_NULL 122671 Attempting to access the managed object of an empty smart pointer "this->donorMtab".

            Assignee:
            didier.nadeau@mongodb.com Didier Nadeau
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: