Coverity analysis defect 175077: Dereference of potentially null field

XMLWordPrintableJSON

    • Query Execution
    • ALL
    • QE 2025-09-15
    • None
    • 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/exec/sbe/stages/scan.cpp:1095: NULL_FIELD 175077 Reading field "_cursor", which is expected to possibly be "nullptr" in "this->_cursor" (checked 6 out of 7 times).
      /src/mongo/db/exec/sbe/stages/scan.cpp:1095: NULL_FIELD 175077 Attempting to access the managed object of an empty smart pointer "this->_cursor".

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

              Created:
              Updated:
              Resolved: