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

Coverity analysis defect 128580: Dereference before null check

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • ALL

      Dereference before null check

      There may be a null pointer dereference, or else the comparison against null is unnecessary. All paths that lead to this null pointer comparison already dereference the pointer earlier
      /src/mongo/db/s/global_index/global_index_cloner_fetcher.cpp:159: REVERSE_INULL 128580 Directly dereferencing pointer "this->_pipeline".
      /src/mongo/db/s/global_index/global_index_cloner_fetcher.cpp:167: REVERSE_INULL 128580 Null-checking "this->_pipeline" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: