Coverity analysis defect 128580: Dereference before null check

XMLWordPrintableJSON

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

      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 Tan
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: