Coverity analysis defect 134265: Dereference after null check

XMLWordPrintableJSON

    • Storage Execution
    • Fully Compatible
    • ALL
    • Execution Team 2022-12-26
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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/catalog/collection_catalog.cpp:788: FORWARD_NULL 134265 Calling "pendingCollection->operator bool()" implies that "pendingCollection" might be null-like.
      /src/mongo/db/catalog/collection_catalog.cpp:805: FORWARD_NULL 134265 Attempting to access the managed object of an empty smart pointer "pendingCollection".

            Assignee:
            Gregory Wlodarek
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: