Coverity analysis defect 175053: Dereference of potentially null field

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • ALL
    • 1
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      Dereference of potentially null field

      If the field is actually null, then a null pointer dereference will occur. Field, which is statistically checked against null, is dereferenced.
      /src/mongo/db/catalog/collection_catalog.cpp:1716: NULL_FIELD 175053 Reading field "collection", which is expected to possibly be "nullptr" in "<anonymous>.collection" (checked 7 out of 8 times).
      /src/mongo/db/catalog/collection_catalog.cpp:1720: NULL_FIELD 175053 Attempting to access the managed object of an empty smart pointer "<anonymous>.collection".

            Assignee:
            Unassigned
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: