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

Coverity analysis defect 122808: Dereference after null check

    XMLWordPrintableJSON

Details

    • Query Optimization
    • Fully Compatible
    • ALL

    Description

      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/query/query_solution.cpp:300: FORWARD_NULL 122808 Calling "this->_root.operator bool()" implies that "this->_root" might be null-like.
      /src/mongo/db/query/query_solution.cpp:305: FORWARD_NULL 122808 Attempting to access the managed object of an empty smart pointer "this->_root".

      Attachments

        Activity

          People

            alexander.ignatyev@mongodb.com Alexander Ignatyev
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: